1
0
Fork 0
alistair23-linux/drivers/net/ethernet/netronome/nfp/flower
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
..
action.c nfp: flower: compile Geneve encap actions 2017-12-19 14:52:13 -05:00
cmsg.c nfp: flower: prioritize stats updates 2018-01-21 18:08:05 -05:00
cmsg.h nfp: flower: implement the PORT_REIFY message 2018-01-03 12:17:49 -05:00
main.c nfp: allow apps to disable ctrl vNIC capabilities 2018-01-19 15:44:18 -05:00
main.h nfp: flower: implement the PORT_REIFY message 2018-01-03 12:17:49 -05:00
match.c nfp: flower: compile Geneve match fields 2017-12-19 14:52:12 -05:00
metadata.c nfp: fix flower offload metadata flag usage 2017-11-17 14:09:35 +09:00
offload.c nfp: forbid disabling hw-tc-offload on representors while offload active 2018-02-08 10:01:27 -05:00
tunnel_conf.c nfp: fix kdoc warnings on nested structures 2018-02-06 11:43:58 -05:00