net: flow_offload: add flow_block structure and use it
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 19 Jul 2019 16:20:16 +0000 (18:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Jul 2019 04:27:45 +0000 (21:27 -0700)
commit14bfb13f0ed525ed117b5d1f3e77e7c0a6be15de
tree3f61f0c8d27bce01c1dde2d7f52226539f221113
parenta7323311515d488b7714bb7504a1d50fabb0bfcf
net: flow_offload: add flow_block structure and use it

This object stores the flow block callbacks that are attached to this
block. Update flow_block_cb_lookup() to take this new object.

This patch restores the block sharing feature.

Fixes: da3eeb904ff4 ("net: flow_offload: add list handling functions")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
13 files changed:
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mscc/ocelot_flower.c
drivers/net/ethernet/mscc/ocelot_tc.c
drivers/net/ethernet/netronome/nfp/flower/offload.c
include/net/flow_offload.h
include/net/netfilter/nf_tables.h
include/net/sch_generic.h
net/core/flow_offload.c
net/dsa/slave.c
net/netfilter/nf_tables_api.c
net/netfilter/nf_tables_offload.c
net/sched/cls_api.c