summaryrefslogtreecommitdiffstats
path: root/kernel/bpf
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2017-11-03 21:56:21 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-05 14:26:19 +0100
commit6c8dfe21c435cf2953e3cee43e12180cbc4f0820 (patch)
tree31bfc8b9375b9e0f42a9e41960301fb3e1df9311 /kernel/bpf
parentxdp: allow attaching programs loaded for specific device (diff)
downloadlinux-6c8dfe21c435cf2953e3cee43e12180cbc4f0820.tar.xz
linux-6c8dfe21c435cf2953e3cee43e12180cbc4f0820.zip
cls_bpf: allow attaching programs loaded for specific device
If TC program is loaded with skip_sw flag, we should allow the device-specific programs to be accepted. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/bpf')
-rw-r--r--kernel/bpf/syscall.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c
index 68f9123acd39..416d70cdfc76 100644
--- a/kernel/bpf/syscall.c
+++ b/kernel/bpf/syscall.c
@@ -1115,6 +1115,7 @@ struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type,
trace_bpf_prog_get_type(prog);
return prog;
}
+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