summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShay Drory <shayd@nvidia.com>2026-05-31 14:39:49 +0300
committerJakub Kicinski <kuba@kernel.org>2026-06-03 17:42:20 -0700
commitc3933a7a7f64e4f7b5ce2eea79d0e6950e833db7 (patch)
tree48836886a4fd1f32162a6d17129acfbe9e2be129
parent8b9fffb6d38b48a0900dbf72fce1dbc5336924de (diff)
downloadlinux-c3933a7a7f64e4f7b5ce2eea79d0e6950e833db7.tar.gz
linux-c3933a7a7f64e4f7b5ce2eea79d0e6950e833db7.zip
net/mlx5: LAG, block multipath LAG for SD devices
SD devices are not compatible with multipath LAG since they use dedicated SD LAG for cross-socket connectivity. Add an SD check to the multipath prereq validation to prevent multipath LAG activation on SD-configured ports. 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-10-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c b/drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c
index f42e051fa7e7..65c76bd748c6 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c
@@ -26,6 +26,10 @@ static bool mlx5_lag_multipath_check_prereq(struct mlx5_lag *ldev)
if (__mlx5_lag_is_active(ldev) && !__mlx5_lag_is_multipath(ldev))
return false;
+ if (__mlx5_lag_is_sd(ldev, mlx5_lag_pf(ldev, idx0)->dev) ||
+ __mlx5_lag_is_sd(ldev, mlx5_lag_pf(ldev, idx1)->dev))
+ return false;
+
if (ldev->ports > MLX5_LAG_MULTIPATH_OFFLOADS_SUPPORTED_PORTS)
return false;