If program is bound to a device, print the name of the relevant interface or unknown if the netdev has since been removed.
Showing the changes to tools/include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -259,6 +259,7 @@ union bpf_attr { · 258 unmodified lines | ||
| 259 | 259 | __u32 kern_version; /* checked when prog_type=kprobe */ |
| 260 | 260 | __u32 prog_flags; |
| 261 | 261 | char prog_name[BPF_OBJ_NAME_LEN]; |
| 262 | + __u32 prog_target_ifindex; /* ifindex of netdev to prep for */ | |
| 262 | 263 | }; |
| 263 | 264 | |
| 264 | 265 | struct { /* anonymous struct used by BPF_OBJ_* commands */ |
| @@ -893,6 +894,10 @@ enum sk_action { · 628 unmodified lines | ||
| 893 | 894 | |
| 894 | 895 | #define BPF_TAG_SIZE 8 |
| 895 | 896 | |
| 897 | +enum bpf_prog_status { | |
| 898 | + BPF_PROG_STATUS_DEV_BOUND = (1 << 0), | |
| 899 | +}; | |
| 900 | + | |
| 896 | 901 | struct bpf_prog_info { |
| 897 | 902 | __u32 type; |
| 898 | 903 | __u32 id; |
| @@ -906,6 +911,8 @@ struct bpf_prog_info { · 7 unmodified lines | ||
| 906 | 911 | __u32 nr_map_ids; |
| 907 | 912 | __aligned_u64 map_ids; |
| 908 | 913 | char name[BPF_OBJ_NAME_LEN]; |
| 914 | + __u32 ifindex; | |
| 915 | + __u32 status; | |
| 909 | 916 | } __attribute__((aligned(8))); |
| 910 | 917 | |
| 911 | 918 | struct bpf_map_info { |