bpf: Sync kernel ABI header with tooling header for bpf_common.h

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/8c88181ed452707f3815827225517b1964463b95
Commit:     8c88181ed452707f3815827225517b1964463b95
Parent:     69fe98edee48b4c3c7d90cb7eea1f1662202137d
Refname:    refs/heads/master
Author:     Jesper Dangaard Brouer <[email protected]>
AuthorDate: Thu Feb 8 12:48:12 2018 +0100
Committer:  Daniel Borkmann <[email protected]>
CommitDate: Fri Feb 9 00:24:38 2018 +0100

    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 <[email protected]>
    Signed-off-by: Daniel Borkmann <[email protected]>
---
 tools/include/uapi/linux/bpf_common.h | 7 ++++---
 1 file 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 @@
 
 /* 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
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.