History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next

Alexei Starovoitov says: ==================== pull-request: bpf-next 2018-01-19 The following pull-request contains BPF updates for your *net-next* tree. The main changes are: 1) bpf array map HW offload, from Jakub. 2) support for bpf_get_next_key() for LPM map, from Yonghong. 3) test_verifier now runs loaded programs, from Alexei. 4) xdp cpumap monitoring, from Jesper. 5) variety of tests, cleanups and small x64 JIT optimization, from Daniel. 6) user space can now retrieve HW JITed program, from Jiong. Note there is a minor conflict between Russell's arm32 JIT fixes and removal of bpf_jit_enable variable by Daniel which should be resolved by keeping Russell's comment and removing that variable. ====================

David S. Miller committed 8 years ago

Commit ea9722e2 parents 8565d26 139104044 files · +1828 −222Browse files

Showing the changes to include/uapi/linux (2 of 44 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/bpf.h +4 −1
  2. include/uapi/linux/bpf_common.h +4 −3
include/uapi/linux/bpf.h+4−1
@@ -17,7 +17,7 @@ · 16 unmodified lines
1717 #define BPF_ALU64 0x07 /* alu mode in double word width */
1818
1919 /* ld/ldx fields */
20−#define BPF_DW 0x18 /* double word */
20+#define BPF_DW 0x18 /* double word (64-bit) */
2121 #define BPF_XADD 0xc0 /* exclusive add */
2222
2323 /* alu/jmp fields */
@@ -938,6 +938,9 @@ struct bpf_map_info { · 914 unmodified lines
938938 __u32 max_entries;
939939 __u32 map_flags;
940940 char name[BPF_OBJ_NAME_LEN];
941+ __u32 ifindex;
942+ __u64 netns_dev;
943+ __u64 netns_ino;
941944 } __attribute__((aligned(8)));
942945
943946 /* User bpf_sock_ops struct to access socket values and specify request ops
include/uapi/linux/bpf_common.h+4−3
@@ -15,9 +15,10 @@ · 14 unmodified lines
1515
1616 /* ld/ldx fields */
1717 #define BPF_SIZE(code) ((code) & 0x18)
18−#define BPF_W 0x00
19−#define BPF_H 0x08
20−#define BPF_B 0x10
18+#define BPF_W 0x00 /* 32-bit */
19+#define BPF_H 0x08 /* 16-bit */
20+#define BPF_B 0x10 /* 8-bit */
21+/* eBPF BPF_DW 0x18 64-bit */
2122 #define BPF_MODE(code) ((code) & 0xe0)
2223 #define BPF_IMM 0x00
2324 #define BPF_ABS 0x20