History

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.

Jakub Kicinski committed 8 years ago

Commit 675fc271 parent cdab6ba5 files · +73 −0Browse files

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

Unified · Split

include/uapi/linux/bpf.h+3−0
@@ -921,6 +921,9 @@ struct bpf_prog_info { · 920 unmodified lines
921921 __u32 nr_map_ids;
922922 __aligned_u64 map_ids;
923923 char name[BPF_OBJ_NAME_LEN];
924+ __u32 ifindex;
925+ __u64 netns_dev;
926+ __u64 netns_ino;
924927 } __attribute__((aligned(8)));
925928
926929 struct bpf_map_info {