* [PATCH net] sfc: fix deadlock in RSS config read
@ 2026-01-23 16:16 edward.cree
2026-01-25 21:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: edward.cree @ 2026-01-23 16:16 UTC (permalink / raw)
To: linux-net-drivers, andrew+netdev, davem, edumazet, kuba, pabeni
Cc: Edward Cree, netdev, Damir Mansurov, Ben Hutchings
From: Edward Cree <ecree.xilinx@gmail.com>
Since cited commit, core locks the net_device's rss_lock when handling
ethtool -x command, so driver's implementation should not lock it
again. Remove the latter.
Fixes: 040cef30b5e6 ("net: ethtool: move get_rxfh callback under the rss_lock")
Reported-by: Damir Mansurov <damir.mansurov@oktetlabs.ru>
Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1126015
Suggested-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
---
drivers/net/ethernet/sfc/mcdi_filters.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/net/ethernet/sfc/mcdi_filters.c b/drivers/net/ethernet/sfc/mcdi_filters.c
index 6ef96292909a..3db589b90b68 100644
--- a/drivers/net/ethernet/sfc/mcdi_filters.c
+++ b/drivers/net/ethernet/sfc/mcdi_filters.c
@@ -2182,12 +2182,7 @@ int efx_mcdi_rx_pull_rss_context_config(struct efx_nic *efx,
int efx_mcdi_rx_pull_rss_config(struct efx_nic *efx)
{
- int rc;
-
- mutex_lock(&efx->net_dev->ethtool->rss_lock);
- rc = efx_mcdi_rx_pull_rss_context_config(efx, &efx->rss_context);
- mutex_unlock(&efx->net_dev->ethtool->rss_lock);
- return rc;
+ return efx_mcdi_rx_pull_rss_context_config(efx, &efx->rss_context);
}
void efx_mcdi_rx_restore_rss_contexts(struct efx_nic *efx)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] sfc: fix deadlock in RSS config read
2026-01-23 16:16 [PATCH net] sfc: fix deadlock in RSS config read edward.cree
@ 2026-01-25 21:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-01-25 21:20 UTC (permalink / raw)
To: edward.cree
Cc: linux-net-drivers, andrew+netdev, davem, edumazet, kuba, pabeni,
ecree.xilinx, netdev, damir.mansurov, ben
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 23 Jan 2026 16:16:34 +0000 you wrote:
> From: Edward Cree <ecree.xilinx@gmail.com>
>
> Since cited commit, core locks the net_device's rss_lock when handling
> ethtool -x command, so driver's implementation should not lock it
> again. Remove the latter.
>
> Fixes: 040cef30b5e6 ("net: ethtool: move get_rxfh callback under the rss_lock")
> Reported-by: Damir Mansurov <damir.mansurov@oktetlabs.ru>
> Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1126015
> Suggested-by: Ben Hutchings <ben@decadent.org.uk>
> Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
>
> [...]
Here is the summary with links:
- [net] sfc: fix deadlock in RSS config read
https://git.kernel.org/netdev/net/c/944c614b0a7a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-25 21:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-23 16:16 [PATCH net] sfc: fix deadlock in RSS config read edward.cree
2026-01-25 21:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox