OpenCloudOS-Kernel/drivers/net/ethernet/netronome/nfp/bpf
Jakub Kicinski d692403e5c nfp: forbid disabling hw-tc-offload on representors while offload active
All netdevs which can accept TC offloads must implement
.ndo_set_features().  nfp_reprs currently do not do that, which
means hw-tc-offload can be turned on and off even when offloads
are active.

Whether the offloads are active is really a question to nfp_ports,
so remove the per-app tc_busy callback indirection thing, and
simply count the number of offloaded items in nfp_port structure.

Fixes: 8a2768732a ("nfp: provide infrastructure for offloading flower based TC filters")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Tested-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-02-08 10:01:27 -05:00
..
cmsg.c nfp: bpf: add short busy wait for FW replies 2018-01-18 22:54:26 +01:00
fw.h nfp: bpf: parse function call and map capabilities 2018-01-14 23:36:30 +01:00
jit.c nfp: bpf: reject program on instructions unknown to the JIT compiler 2018-01-17 01:15:06 +01:00
main.c nfp: forbid disabling hw-tc-offload on representors while offload active 2018-02-08 10:01:27 -05:00
main.h nfp: fix kdoc warnings on nested structures 2018-02-06 11:43:58 -05:00
offload.c nfp: bpf: use extack support to improve debugging 2018-01-22 16:28:32 -05:00
verifier.c nfp: bpf: reject program on instructions unknown to the JIT compiler 2018-01-17 01:15:06 +01:00