diff options
author | David S. Miller <davem@davemloft.net> | 2018-06-02 08:07:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-02 08:07:52 -0400 |
commit | cd075ce4679ca7797734c4f6c5aa23878c8e2208 (patch) | |
tree | 2bcce553c20dbb6a49019429ae89a0324b5e6b9c | |
parent | 9f7c728332e8966084242fcd951aa46583bc308c (diff) | |
parent | 36f9814a494a874d5a0f44843544b4b2539022db (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Daniel Borkmann says:
====================
pull-request: bpf 2018-06-02
The following pull-request contains BPF updates for your *net* tree.
The main changes are:
1) BPF uapi fix in struct bpf_prog_info and struct bpf_map_info in
order to fix offsets on 32 bit archs.
This will have a minor merge conflict with net-next which has the
__u32 gpl_compatible:1 bitfield in struct bpf_prog_info at this
location. Resolution is to use the gpl_compatible member.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/uapi/linux/bpf.h | 2 | ||||
-rw-r--r-- | tools/include/uapi/linux/bpf.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index c5ec89732a8d..8c317737ba3f 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h | |||
@@ -1017,6 +1017,7 @@ struct bpf_prog_info { | |||
1017 | __aligned_u64 map_ids; | 1017 | __aligned_u64 map_ids; |
1018 | char name[BPF_OBJ_NAME_LEN]; | 1018 | char name[BPF_OBJ_NAME_LEN]; |
1019 | __u32 ifindex; | 1019 | __u32 ifindex; |
1020 | __u32 :32; | ||
1020 | __u64 netns_dev; | 1021 | __u64 netns_dev; |
1021 | __u64 netns_ino; | 1022 | __u64 netns_ino; |
1022 | } __attribute__((aligned(8))); | 1023 | } __attribute__((aligned(8))); |
@@ -1030,6 +1031,7 @@ struct bpf_map_info { | |||
1030 | __u32 map_flags; | 1031 | __u32 map_flags; |
1031 | char name[BPF_OBJ_NAME_LEN]; | 1032 | char name[BPF_OBJ_NAME_LEN]; |
1032 | __u32 ifindex; | 1033 | __u32 ifindex; |
1034 | __u32 :32; | ||
1033 | __u64 netns_dev; | 1035 | __u64 netns_dev; |
1034 | __u64 netns_ino; | 1036 | __u64 netns_ino; |
1035 | } __attribute__((aligned(8))); | 1037 | } __attribute__((aligned(8))); |
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index c5ec89732a8d..8c317737ba3f 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h | |||
@@ -1017,6 +1017,7 @@ struct bpf_prog_info { | |||
1017 | __aligned_u64 map_ids; | 1017 | __aligned_u64 map_ids; |
1018 | char name[BPF_OBJ_NAME_LEN]; | 1018 | char name[BPF_OBJ_NAME_LEN]; |
1019 | __u32 ifindex; | 1019 | __u32 ifindex; |
1020 | __u32 :32; | ||
1020 | __u64 netns_dev; | 1021 | __u64 netns_dev; |
1021 | __u64 netns_ino; | 1022 | __u64 netns_ino; |
1022 | } __attribute__((aligned(8))); | 1023 | } __attribute__((aligned(8))); |
@@ -1030,6 +1031,7 @@ struct bpf_map_info { | |||
1030 | __u32 map_flags; | 1031 | __u32 map_flags; |
1031 | char name[BPF_OBJ_NAME_LEN]; | 1032 | char name[BPF_OBJ_NAME_LEN]; |
1032 | __u32 ifindex; | 1033 | __u32 ifindex; |
1034 | __u32 :32; | ||
1033 | __u64 netns_dev; | 1035 | __u64 netns_dev; |
1034 | __u64 netns_ino; | 1036 | __u64 netns_ino; |
1035 | } __attribute__((aligned(8))); | 1037 | } __attribute__((aligned(8))); |