Skip to content

Commit e2bb798

Browse files
roidayanSaeed Mahameed
authored andcommitted
net/mlx5e: E-Switch, Allow devcom initialization on more vports
New features could use the devcom interface but not necessarily the lag feature although for vport managers and ECPF still check for lag support. Signed-off-by: Roi Dayan <roid@nvidia.com> Reviewed-by: Shay Drory <shayd@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
1 parent 1161d22 commit e2bb798

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2897,7 +2897,8 @@ void mlx5_esw_offloads_devcom_init(struct mlx5_eswitch *esw, u64 key)
28972897
if (!MLX5_CAP_ESW(esw->dev, merged_eswitch))
28982898
return;
28992899

2900-
if (!mlx5_lag_is_supported(esw->dev))
2900+
if ((MLX5_VPORT_MANAGER(esw->dev) || mlx5_core_is_ecpf_esw_manager(esw->dev)) &&
2901+
!mlx5_lag_is_supported(esw->dev))
29012902
return;
29022903

29032904
xa_init(&esw->paired);

0 commit comments

Comments
 (0)