summaryrefslogtreecommitdiffstats
path: root/block/badblocks.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-02-07 20:55:24 -0800
committerDavid S. Miller <davem@davemloft.net>2018-02-08 10:01:27 -0500
commitd692403e5cf8008f31f5664a6f3ce3e65d54f458 (patch)
tree497dfc82655e28d9159888154ad9d23248f9d176 /block/badblocks.c
parent0b9de4ca853b6ba2c92ff0b4602281001b166639 (diff)
downloadblackbird-obmc-linux-d692403e5cf8008f31f5664a6f3ce3e65d54f458.tar.gz
blackbird-obmc-linux-d692403e5cf8008f31f5664a6f3ce3e65d54f458.zip
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: 8a2768732a4d ("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>
Diffstat (limited to 'block/badblocks.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud