net: flow_offload: add flow_block_cb_is_busy() and use it
This patch adds a function to check if flow block callback is already in use. Call this new function from flow_block_cb_setup_simple() and from drivers. Signed-off-by:Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c 4 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_rep.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum.c 4 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum.c
- drivers/net/ethernet/mscc/ocelot_tc.c 3 additions, 0 deletionsdrivers/net/ethernet/mscc/ocelot_tc.c
- drivers/net/ethernet/netronome/nfp/flower/offload.c 4 additions, 0 deletionsdrivers/net/ethernet/netronome/nfp/flower/offload.c
- include/net/flow_offload.h 3 additions, 0 deletionsinclude/net/flow_offload.h
- net/core/flow_offload.c 18 additions, 0 deletionsnet/core/flow_offload.c
- net/dsa/slave.c 3 additions, 0 deletionsnet/dsa/slave.c
Loading
Please register or sign in to comment