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)
commit1edfb8ed6cc12107c2ec61b5be7bc881cfc4460e
treeeb3ec422bff4b3c0e68f8dd9aca1918ccc43b4f2
parentcd9d4ff9b78fcd0fc4708900ba3e52e71e1a7690
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: 0d4fd02e7199 ("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