linux_dsm_epyc7002/drivers/net/ethernet/netronome/nfp/flower
John Hurley 951a8ee6de nfp: reject binding to shared blocks
TC shared blocks allow multiple qdiscs to be grouped together and filters
shared between them. Currently the chains of filters attached to a block
are only flushed when the block is removed. If a qdisc is removed from a
block but the block still exists, flow del messages are not passed to the
callback registered for that qdisc. For the NFP, this presents the
possibility of rules still existing in hw when they should be removed.

Prevent binding to shared blocks until the kernel can send per qdisc del
messages when block unbinds occur.

tcf_block_shared() was not used outside of the core until now, so also
add an empty implementation for builds with CONFIG_NET_CLS=n.

Fixes: 4861738775 ("net: sched: introduce shared filter blocks infrastructure")
Signed-off-by: John Hurley <john.hurley@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-06-27 10:46:43 +09:00
..
action.c nfp: flower: compute link aggregation action 2018-05-24 23:10:57 -04:00
cmsg.c nfp: flower: implement host cmsg handler for LAG 2018-05-24 23:10:57 -04:00
cmsg.h nfp: flower: compute link aggregation action 2018-05-24 23:10:57 -04:00
lag_conf.c nfp: flower: compute link aggregation action 2018-05-24 23:10:57 -04:00
main.c nfp: remove phys_port_name on flower's vNIC 2018-06-12 15:18:28 -07:00
main.h nfp: flower: compute link aggregation action 2018-05-24 23:10:57 -04:00
Makefile nfp: add Makefiles to all directories 2018-02-22 15:22:50 -05:00
match.c nfp: flower: fix mpls ether type detection 2018-06-27 10:46:43 +09:00
metadata.c treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
offload.c nfp: reject binding to shared blocks 2018-06-27 10:46:43 +09:00
tunnel_conf.c nfp: flower: free dst_entry in route table 2018-06-12 15:18:28 -07:00