diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-01-17 19:13:28 -0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-01-18 22:54:25 +0100 |
commit | 52775b33bb5072fbc07b02c0cf4fe8da1f7ee7cd (patch) | |
tree | 86ead032dc8cbdf4488b9719b9ef41e25e8bb189 /tools/include/uapi | |
parent | 7a0ef6939548b9eb74bf464daf55ad68a23602a2 (diff) | |
download | blackbird-op-linux-52775b33bb5072fbc07b02c0cf4fe8da1f7ee7cd.tar.gz blackbird-op-linux-52775b33bb5072fbc07b02c0cf4fe8da1f7ee7cd.zip |
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.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/include/uapi')
-rw-r--r-- | tools/include/uapi/linux/bpf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 7c2259e8bc54..af1f49ad8b88 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -938,6 +938,9 @@ struct bpf_map_info { __u32 max_entries; __u32 map_flags; char name[BPF_OBJ_NAME_LEN]; + __u32 ifindex; + __u64 netns_dev; + __u64 netns_ino; } __attribute__((aligned(8))); /* User bpf_sock_ops struct to access socket values and specify request ops |