Skip to content

Commit

Permalink
mlx5: DR, Fix the default miss vport
Browse files Browse the repository at this point in the history
[ Upstream commit 68b272d ]

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]>
Signed-off-by: Nicolas Morey <[email protected]>
  • Loading branch information
jiaweiwsz authored and nmorey committed Jan 17, 2024
1 parent 3f05501 commit 9d59a7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/mlx5/dr_action.c
Expand Up @@ -2419,6 +2419,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 9d59a7e

Please sign in to comment.