summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorJohn Hurley <john.hurley@netronome.com>2019-12-05 17:03:35 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-18 16:08:49 +0100
commit554d2e14c5e1dac1b15ebd0c461084f7b733cb03 (patch)
tree58ce03672d4f6810f950652ac54bd8fa0dddaad5 /include/net
parent1b511a9d2c09bc7a0b0ea3d2b4538547b7615284 (diff)
net: sched: allow indirect blocks to bind to clsact in TC
[ Upstream commit 25a443f74bcff2c4d506a39eae62fc15ad7c618a ] When a device is bound to a clsact qdisc, bind events are triggered to registered drivers for both ingress and egress. However, if a driver registers to such a device using the indirect block routines then it is assumed that it is only interested in ingress offload and so only replays ingress bind/unbind messages. The NFP driver supports the offload of some egress filters when registering to a block with qdisc of type clsact. However, on unregister, if the block is still active, it will not receive an unbind egress notification which can prevent proper cleanup of other registered callbacks. Modify the indirect block callback command in TC to send messages of ingress and/or egress bind depending on the qdisc in use. NFP currently supports egress offload for TC flower offload so the changes are only added to TC. Fixes: 4d12ba42787b ("nfp: flower: allow offloading of matches on 'internal' ports") Signed-off-by: John Hurley <john.hurley@netronome.com> Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions