]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02ef9aed2e53c726ac963a23eb8de8dcd74fe2fe
tree31bfc8b9375b9e0f42a9e41960301fb3e1df9311
parente730902fff10eeb5fc197d1f5ae66a0943aa40f5
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