cls_bpf: allow attaching programs loaded for specific device
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 3 Nov 2017 20:56:21 +0000 (13:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Nov 2017 13:26:19 +0000 (22:26 +0900)
commit6c8dfe21c435cf2953e3cee43e12180cbc4f0820
tree31bfc8b9375b9e0f42a9e41960301fb3e1df9311
parent248f346ffe9508dee0039db4ac839cb31ba3bdec
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>
kernel/bpf/syscall.c
net/sched/cls_bpf.c