Skip to content

Commit eb8e9fa

Browse files
BodongWangSaeed Mahameed
authored andcommitted
mlx5/core: E-Switch, Allocate ECPF vport if it's an eswitch manager
Eswitch vport is needed for eswitch manager when creating LAG, to create egress rules. However, this was not handled when ECPF is an eswitch manager. Signed-off-by: Bodong Wang <[email protected]> Reviewed-by: Mark Bloch <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 97bd788 commit eb8e9fa

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,8 @@ static int mlx5_esw_vports_init(struct mlx5_eswitch *esw)
16011601
idx++;
16021602
}
16031603

1604-
if (mlx5_ecpf_vport_exists(dev)) {
1604+
if (mlx5_ecpf_vport_exists(dev) ||
1605+
mlx5_core_is_ecpf_esw_manager(dev)) {
16051606
err = mlx5_esw_vport_alloc(esw, idx, MLX5_VPORT_ECPF);
16061607
if (err)
16071608
goto err;

0 commit comments

Comments
 (0)