net/mlx5: E-Switch, skip vport change work for disabled vports
Subsystems (4)
Tariq Toukan
maintainerPATCH 1/1 net/mlx5: E-Switch, skip vport change work for disabled vports
From: Uri Dar <[email protected]>
A vport change work can still be pending when its vport is disabled. For an SF, the vport is then freed in FW and the work's query fails with syndrome 0x29d722. A disabled vport has nothing to sync, so skip the work.
--- drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +2 -1
@@ -758,7 +758,8 @@ static void esw_vport_change_handler(struct work_struct *work)struct mlx5_eswitch *esw = vport->dev->priv.eswitch;mutex_lock (&esw->state_lock); -esw_vport_change_handle_locked (vport); +if (vport->enabled) +esw_vport_change_handle_locked (vport);mutex_unlock (&esw->state_lock); }
base-commit: aa40afa831ebfe45e40a23721711059f2ac584d4
Signature · 1 line
2.44.0
[email protected]
AI reviewSashiko has reviewed this patch and found no issues.
Quoted 7 lines
From: Uri Dar <[email protected]>
A vport change work can still be pending when its vport is disabled. For an SF, the vport is then freed in FW and the work's query fails with syndrome
0x29d722. A disabled vport has nothing to sync, so skip the work.
Quoted 5 lines
Fixes d970812b91d0 ("net/mlx5: E-switch, Add eswitch helpers for SF vport")Signed-off-by Uri Dar <[email protected]>Reviewed-by Shay Drory <[email protected]>Reviewed-by Mark Bloch <[email protected]>Signed-off-by Tariq Toukan <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Wed, 18 Nov 2026 18:51:55 +0200 you wrote:
From: Uri Dar <[email protected]>
A vport change work can still be pending when its vport is disabled. For an SF, the vport is then freed in FW and the work's query fails with syndrome
0x29d722. A disabled vport has nothing to sync, so skip the work.[...]
Here is the summary with links:
- [net] net/mlx5: E-Switch, skip vport change work for disabled vports
https://git.kernel.org/netdev/net/c/890f23ba87a7
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html