Skip to content

Commit ca6891f

Browse files
dickmanmaorSaeed Mahameed
authored andcommitted
net/mlx5: E-Switch, Set vhca id valid flag when creating indir fwd group
When indirect forward group is created, flow is added with vhca id but without setting vhca id valid flag which violates the PRM. Fix by setting the missing flag, vhca id valid. Fixes: 34ca653 ("net/mlx5: E-Switch, Indirect table infrastructure") Signed-off-by: Maor Dickman <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 9a5f9cc commit ca6891f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ static int mlx5_create_indir_fwd_group(struct mlx5_eswitch *esw,
364364
dest.type = MLX5_FLOW_DESTINATION_TYPE_VPORT;
365365
dest.vport.num = e->vport;
366366
dest.vport.vhca_id = MLX5_CAP_GEN(esw->dev, vhca_id);
367+
dest.vport.flags = MLX5_FLOW_DEST_VPORT_VHCA_ID;
367368
e->fwd_rule = mlx5_add_flow_rules(e->ft, spec, &flow_act, &dest, 1);
368369
if (IS_ERR(e->fwd_rule)) {
369370
mlx5_destroy_flow_group(e->fwd_grp);

0 commit comments

Comments
 (0)