]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: verify that block cb is not busy before binding
authorVlad Buslov <vladbu@mellanox.com>
Mon, 19 Aug 2019 07:33:04 +0000 (10:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2019 01:16:23 +0000 (18:16 -0700)
commit550e2733d64dda266ff07323519c3cc0ae775d71
treeeb3ec422bff4b3c0e68f8dd9aca1918ccc43b4f2
parent06be6c67da51df4187f2546cd54f751c51897e10
nfp: flower: verify that block cb is not busy before binding

When processing FLOW_BLOCK_BIND command on indirect block, check that flow
block cb is not busy.

Fixes: 338d8b4095d1 ("net: flow_offload: add flow_block_cb_is_busy() and use it")
Reported-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/offload.c