History

bpf: offload: report device information about offloaded maps

Tell user space about device on which the map was created. Unfortunate reality of user ABI makes sharing this code with program offload difficult but the information is the same.

Jakub Kicinski committed 8 years ago

Commit 52775b31 parent 7a0ef695 files · +69 −0Browse files

Showing the changes to include/uapi/linux (1 of 5 files). Show all

Unified · Split

include/uapi/linux/bpf.h+3−0
@@ -938,6 +938,9 @@ struct bpf_map_info { · 937 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