diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-07-19 18:20:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-20 06:27:45 +0200 |
commit | 0c7294ddae73ad8d7532f95a86259e311e991a55 (patch) | |
tree | 67888198b9c757aff15b40926760d13e84556547 /drivers/net/ethernet/mscc/ocelot_flower.c | |
parent | net: openvswitch: rename flow_stats to sw_flow_stats (diff) | |
download | linux-0c7294ddae73ad8d7532f95a86259e311e991a55.tar.xz linux-0c7294ddae73ad8d7532f95a86259e311e991a55.zip |
net: flow_offload: remove netns parameter from flow_block_cb_alloc()
No need to annotate the netns on the flow block callback object,
flow_block_cb_is_busy() already checks for used blocks.
Fixes: d63db30c8537 ("net: flow_offload: add flow_block_cb_alloc() and flow_block_cb_free()")
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>
Diffstat (limited to 'drivers/net/ethernet/mscc/ocelot_flower.c')
-rw-r--r-- | drivers/net/ethernet/mscc/ocelot_flower.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot_flower.c b/drivers/net/ethernet/mscc/ocelot_flower.c index 7aaddc09c185..6a11aea8b186 100644 --- a/drivers/net/ethernet/mscc/ocelot_flower.c +++ b/drivers/net/ethernet/mscc/ocelot_flower.c @@ -323,8 +323,7 @@ int ocelot_setup_tc_block_flower_bind(struct ocelot_port *port, if (!port_block) return -ENOMEM; - block_cb = flow_block_cb_alloc(f->net, - ocelot_setup_tc_block_cb_flower, + block_cb = flow_block_cb_alloc(ocelot_setup_tc_block_cb_flower, port, port_block, ocelot_tc_block_unbind); if (IS_ERR(block_cb)) { |