|
@@ -1118,7 +1118,7 @@ struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type,
|
|
|
EXPORT_SYMBOL_GPL(bpf_prog_get_type_dev);
|
|
|
|
|
|
/* last field in 'union bpf_attr' used by this command */
|
|
|
-#define BPF_PROG_LOAD_LAST_FIELD prog_target_ifindex
|
|
|
+#define BPF_PROG_LOAD_LAST_FIELD prog_ifindex
|
|
|
|
|
|
static int bpf_prog_load(union bpf_attr *attr)
|
|
|
{
|
|
@@ -1181,7 +1181,7 @@ static int bpf_prog_load(union bpf_attr *attr)
|
|
|
atomic_set(&prog->aux->refcnt, 1);
|
|
|
prog->gpl_compatible = is_gpl ? 1 : 0;
|
|
|
|
|
|
- if (attr->prog_target_ifindex) {
|
|
|
+ if (attr->prog_ifindex) {
|
|
|
err = bpf_prog_offload_init(prog, attr);
|
|
|
if (err)
|
|
|
goto free_prog;
|