sfc: move table locking into filter_table_{probe,remove} methods
authorEdward Cree <ecree.xilinx@gmail.com>
Thu, 28 Jul 2022 18:57:50 +0000 (19:57 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Jul 2022 04:22:06 +0000 (21:22 -0700)
commit77eb40749d73fe347c47d6903874a924840ff8d5
treedd859ff59175f367f51d468e2e9b34b01c99ae58
parent67ab160ed08f5bb55aff55aa41e6bde56cb83661
sfc: move table locking into filter_table_{probe,remove} methods

We need to be able to drop the efx->filter_sem in ef100_filter_table_up()
 so that we can call functions that insert filters (and thus take that
 rwsem for read), which means the efx->type->filter_table_probe method
 needs to be responsible for taking the lock in the first place.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/ef100_nic.c
drivers/net/ethernet/sfc/ef10_sriov.c
drivers/net/ethernet/sfc/mcdi_filters.h
drivers/net/ethernet/sfc/rx_common.c