diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2018-02-08 06:48:12 -0500 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-02-08 18:24:38 -0500 |
commit | 8c88181ed452707f3815827225517b1964463b95 (patch) | |
tree | 6608f0e4c485b76e2f121afc3e13945880f3dc1a | |
parent | 69fe98edee48b4c3c7d90cb7eea1f1662202137d (diff) |
bpf: Sync kernel ABI header with tooling header for bpf_common.h
I recently fixed up a lot of commits that forgot to keep the tooling
headers in sync. And then I forgot to do the same thing in commit
cb5f7334d479 ("bpf: add comments to BPF ld/ldx sizes"). Let correct
that before people notice ;-).
Lawrence did partly fix/sync this for bpf.h in commit d6d4f60c3a09
("bpf: add selftest for tcpbpf").
Fixes: cb5f7334d479 ("bpf: add comments to BPF ld/ldx sizes")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
-rw-r--r-- | tools/include/uapi/linux/bpf_common.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/include/uapi/linux/bpf_common.h b/tools/include/uapi/linux/bpf_common.h index 18be90725ab0..ee97668bdadb 100644 --- a/tools/include/uapi/linux/bpf_common.h +++ b/tools/include/uapi/linux/bpf_common.h | |||
@@ -15,9 +15,10 @@ | |||
15 | 15 | ||
16 | /* ld/ldx fields */ | 16 | /* ld/ldx fields */ |
17 | #define BPF_SIZE(code) ((code) & 0x18) | 17 | #define BPF_SIZE(code) ((code) & 0x18) |
18 | #define BPF_W 0x00 | 18 | #define BPF_W 0x00 /* 32-bit */ |
19 | #define BPF_H 0x08 | 19 | #define BPF_H 0x08 /* 16-bit */ |
20 | #define BPF_B 0x10 | 20 | #define BPF_B 0x10 /* 8-bit */ |
21 | /* eBPF BPF_DW 0x18 64-bit */ | ||
21 | #define BPF_MODE(code) ((code) & 0xe0) | 22 | #define BPF_MODE(code) ((code) & 0xe0) |
22 | #define BPF_IMM 0x00 | 23 | #define BPF_IMM 0x00 |
23 | #define BPF_ABS 0x20 | 24 | #define BPF_ABS 0x20 |