Skip to content

Commit

Permalink
mlx5: DR, Fix the default miss vport
Browse files Browse the repository at this point in the history
For FDB sample flow, the termination table on sample destination path
must go to the eswitch manager vport. On BlueField, the eswitch manager
vport is 0xfffe rather than 0.

Change to set the correct destination vport depends on the current
eswitch function is ECPF or PF.

Fixes: 161d5ad ("mlx5: DR, Add support for destination array action")
Signed-off-by: Jiawei Wang <[email protected]>
Reviewed-by: Hamdan Igbaria <[email protected]>
Signed-off-by: Yishai Hadas <[email protected]>
  • Loading branch information
jiaweiwsz authored and Yishai Hadas committed Jan 11, 2024
1 parent e32e337 commit 68b272d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/mlx5/dr_action.c
Expand Up @@ -2485,6 +2485,8 @@ dr_action_convert_to_fte_dest(struct mlx5dv_dr_domain *dmn,

fte_attr->action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST;
dest_info->type = MLX5_FLOW_DEST_TYPE_VPORT;
if (dmn->info.caps.is_ecpf)
dest_info->vport_num = ECPF_PORT;
break;
case DR_ACTION_TYP_VPORT:
if (dmn->type != MLX5DV_DR_DOMAIN_TYPE_FDB)
Expand Down

0 comments on commit 68b272d

Please sign in to comment.