diff options
| author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-12-27 21:39:09 -0500 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2017-12-31 10:12:23 -0500 |
| commit | 675fc275a3a2d905535207237402c6d8dcb5fa4b (patch) | |
| tree | b1c1ae477626ab0a2695249713b5a5941f25042f /tools/include | |
| parent | cdab6ba8668d68f031bfd5d237b4586ec4f8cd88 (diff) | |
bpf: offload: report device information for offloaded programs
Report to the user ifindex and namespace information of offloaded
programs. If device has disappeared return -ENODEV. Specify the
namespace using dev/inode combination.
CC: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/include')
| -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 db1b0923a308..4e8c60acfa32 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h | |||
| @@ -921,6 +921,9 @@ struct bpf_prog_info { | |||
| 921 | __u32 nr_map_ids; | 921 | __u32 nr_map_ids; |
| 922 | __aligned_u64 map_ids; | 922 | __aligned_u64 map_ids; |
| 923 | char name[BPF_OBJ_NAME_LEN]; | 923 | char name[BPF_OBJ_NAME_LEN]; |
| 924 | __u32 ifindex; | ||
| 925 | __u64 netns_dev; | ||
| 926 | __u64 netns_ino; | ||
| 924 | } __attribute__((aligned(8))); | 927 | } __attribute__((aligned(8))); |
| 925 | 928 | ||
| 926 | struct bpf_map_info { | 929 | struct bpf_map_info { |
