diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-07-19 19:20:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-20 07:27:45 +0300 |
commit | 0c7294ddae73ad8d7532f95a86259e311e991a55 (patch) | |
tree | 67888198b9c757aff15b40926760d13e84556547 /net/dsa/slave.c | |
parent | aef833c58d321f09ae4ce4467723542842ba9faf (diff) | |
download | linux-0c7294ddae73ad8d7532f95a86259e311e991a55.tar.xz |
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 'net/dsa/slave.c')
-rw-r--r-- | net/dsa/slave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 614c38ece104..6ca9ec58f881 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -967,7 +967,7 @@ static int dsa_slave_setup_tc_block(struct net_device *dev, if (flow_block_cb_is_busy(cb, dev, &dsa_slave_block_cb_list)) return -EBUSY; - block_cb = flow_block_cb_alloc(f->net, cb, dev, dev, NULL); + block_cb = flow_block_cb_alloc(cb, dev, dev, NULL); if (IS_ERR(block_cb)) return PTR_ERR(block_cb); |