]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5: E-Switch, align disable sequence with switchdev-to-legacy transition
authorShay Drory <shayd@nvidia.com>
Sun, 31 May 2026 11:39:42 +0000 (14:39 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Jun 2026 00:42:19 +0000 (17:42 -0700)
commitb48b6308dfaeae49fcda61b4066773cb5e8a9ce8
tree276134b4f8bcc01db3171485f123f3a78a7a8d71
parentcf6c4c0508a9a3858203b726bd3a3f9557449f67
net/mlx5: E-Switch, align disable sequence with switchdev-to-legacy transition

This patch align the eswitch disable sequence with the
switchdev-to-legacy mode transition, where eswitch must be disabled
before device detachment. The consistent ordering is required for proper
SD LAG cleanup which depends on eswitch state during teardown.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260531113954.395443-3-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c