]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5: E-Switch, Fix switching to switchdev mode with IB device disabled
authorPatrisious Haddad <phaddad@nvidia.com>
Tue, 3 Dec 2024 20:49:17 +0000 (22:49 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Dec 2024 03:43:46 +0000 (19:43 -0800)
commit5f9b2bf019b7fb58e883dca7522c606c52612ea4
tree6fa291a6f47ea3a9acd7e587edc089887440ea22
parent10e0f0c018d5ce5ba4f349875c67f99c3253b5c3
net/mlx5: E-Switch, Fix switching to switchdev mode with IB device disabled

In case that IB device is already disabled when moving to switchdev mode,
which can happen when working with LAG, need to do rescan_drivers()
before leaving in order to add ethernet representor auxiliary device.

Fixes: ab85ebf43723 ("net/mlx5: E-switch, refactor eswitch mode change")
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20241203204920.232744-4-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c