diff options
| author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-11-20 18:21:53 -0500 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2017-11-20 18:37:35 -0500 |
| commit | 1f6f4cb7ba219b00a3fa9afe8049fa16444d8b52 (patch) | |
| tree | 72cb4ecf1587efe24184c61c215e1ad4fd86adb6 /include/uapi/linux/bpf.h | |
| parent | 649f11dcd19a5f0d00fdbc760fbdccdd98e56a43 (diff) | |
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.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/uapi/linux/bpf.h')
| -rw-r--r-- | include/uapi/linux/bpf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index e880ae6434ee..3f626df42516 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h | |||
| @@ -262,7 +262,7 @@ union bpf_attr { | |||
| 262 | __u32 kern_version; /* checked when prog_type=kprobe */ | 262 | __u32 kern_version; /* checked when prog_type=kprobe */ |
| 263 | __u32 prog_flags; | 263 | __u32 prog_flags; |
| 264 | char prog_name[BPF_OBJ_NAME_LEN]; | 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 | struct { /* anonymous struct used by BPF_OBJ_* commands */ | 268 | struct { /* anonymous struct used by BPF_OBJ_* commands */ |
