bpf_target_prog seems long and clunky, rename it to prog_ifindex. We don't want to call this field just ifindex, because maps may need a similar field in the future and bpf_attr members for programs and maps are unnamed.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -262,7 +262,7 @@ union bpf_attr { · 261 unmodified lines | ||
| 262 | 262 | __u32 kern_version; /* checked when prog_type=kprobe */ |
| 263 | 263 | __u32 prog_flags; |
| 264 | 264 | char prog_name[BPF_OBJ_NAME_LEN]; |
| 265 | − __u32 prog_target_ifindex; /* ifindex of netdev to prep for */ | |
| 265 | + __u32 prog_ifindex; /* ifindex of netdev to prep for */ | |
| 266 | 266 | }; |
| 267 | 267 | |
| 268 | 268 | struct { /* anonymous struct used by BPF_OBJ_* commands */ |