rocker: fix a sleeping in atomic bug
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 6 Jan 2022 11:57:54 +0000 (14:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:52 +0000 (11:03 +0100)
commit4a308769df64bfcaea7a398e9c548386f9b6a075
tree4fa4af4d406ce195d530a4ccd5171711615aaae5
parent5f54a0355802cfcd3e868541417b55c81b05e54e
rocker: fix a sleeping in atomic bug

[ Upstream commit 43d012123122cc69feacab55b71369f386c19566 ]

This code is holding the &ofdpa->flow_tbl_lock spinlock so it is not
allowed to sleep.  That means we have to pass the OFDPA_OP_FLAG_NOWAIT
flag to ofdpa_flow_tbl_del().

Fixes: 936bd486564a ("rocker: use FIB notifications instead of switchdev calls")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/rocker/rocker_ofdpa.c