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 <jiaweiw@nvidia.com>
Reviewed-by: Hamdan Igbaria <hamdani@nvidia.com>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Nicolas Morey <nmorey@suse.com>
  • Loading branch information
jiaweiwsz authored and nmorey committed Jan 17, 2024
1 parent 9d9a3dd commit 17cd2a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/mlx5/dr_action.c
Expand Up @@ -2384,6 +2384,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 17cd2a7

Please sign in to comment.