History

bpf: offload: rename the ifindex field

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.

Jakub Kicinski committed 8 years ago

Commit 1f6f4cb1 parent 649f11d4 files · +5 −5Browse files

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

Unified · Split

include/uapi/linux/bpf.h+1−1
@@ -262,7 +262,7 @@ union bpf_attr { · 261 unmodified lines
262262 __u32 kern_version; /* checked when prog_type=kprobe */
263263 __u32 prog_flags;
264264 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 */
266266 };
267267
268268 struct { /* anonymous struct used by BPF_OBJ_* commands */