Skip to content

Commit

Permalink
net/mlx5e: E-Switch, Allow devcom initialization on more vports
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roi Dayan authored and Saeed Mahameed committed Jul 27, 2023
1 parent 1161d22 commit e2bb798
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
Original file line number Diff line number Diff line change
Expand Up @@ -2897,7 +2897,8 @@ void mlx5_esw_offloads_devcom_init(struct mlx5_eswitch *esw, u64 key)
if (!MLX5_CAP_ESW(esw->dev, merged_eswitch))
return;

if (!mlx5_lag_is_supported(esw->dev))
if ((MLX5_VPORT_MANAGER(esw->dev) || mlx5_core_is_ecpf_esw_manager(esw->dev)) &&
!mlx5_lag_is_supported(esw->dev))
return;

xa_init(&esw->paired);
Expand Down

0 comments on commit e2bb798

Please sign in to comment.