summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/bpf_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/bpf_common.h')
-rw-r--r--include/uapi/linux/bpf_common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/uapi/linux/bpf_common.h b/include/uapi/linux/bpf_common.h
index 18be907..ee97668 100644
--- a/include/uapi/linux/bpf_common.h
+++ b/include/uapi/linux/bpf_common.h
@@ -15,9 +15,10 @@
/* ld/ldx fields */
#define BPF_SIZE(code) ((code) & 0x18)
-#define BPF_W 0x00
-#define BPF_H 0x08
-#define BPF_B 0x10
+#define BPF_W 0x00 /* 32-bit */
+#define BPF_H 0x08 /* 16-bit */
+#define BPF_B 0x10 /* 8-bit */
+/* eBPF BPF_DW 0x18 64-bit */
#define BPF_MODE(code) ((code) & 0xe0)
#define BPF_IMM 0x00
#define BPF_ABS 0x20
OpenPOWER on IntegriCloud