]> git.baikalelectronics.ru Git - kernel.git/commit
rocker: fix a sleeping in atomic bug
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 6 Jan 2022 11:57:54 +0000 (14:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jan 2022 13:45:02 +0000 (13:45 +0000)
commit054e9dcd985d06ad2e2108a6d00df8e2ca04b5d6
tree5abb1df59a3fa95399b577e054d20d5b55bb595b
parent62659fd8c7d5b25e6e29e0e9dd069140357db817
rocker: fix a sleeping in atomic bug

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: ff586865c016 ("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>
drivers/net/ethernet/rocker/rocker_ofdpa.c