Skip to content

Commit bdc87e3

Browse files
author
Mohammad Kabat
committed
net/mlx5: Eswitch, Fix forwarding decision to uplink
Bugzilla: https://bugzilla.redhat.com/2112940 Upstream-status: v6.0-rc3 commit 942fca7 Author: Eli Cohen <elic@nvidia.com> Date: Sun Aug 7 08:25:28 2022 +0300 net/mlx5: Eswitch, Fix forwarding decision to uplink Make sure to modify the rule for uplink forwarding only for the case where destination vport number is MLX5_VPORT_UPLINK. Fixes: 94db331 ("net/mlx5: Support multiport eswitch mode") Signed-off-by: Eli Cohen <elic@nvidia.com> Reviewed-by: Maor Dickman <maord@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Mohammad Kabat <mkabat@redhat.com>
1 parent cdd2999 commit bdc87e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ esw_setup_vport_dest(struct mlx5_flow_destination *dest, struct mlx5_flow_act *f
419419
dest[dest_idx].vport.vhca_id =
420420
MLX5_CAP_GEN(esw_attr->dests[attr_idx].mdev, vhca_id);
421421
dest[dest_idx].vport.flags |= MLX5_FLOW_DEST_VPORT_VHCA_ID;
422-
if (mlx5_lag_mpesw_is_activated(esw->dev))
422+
if (dest[dest_idx].vport.num == MLX5_VPORT_UPLINK &&
423+
mlx5_lag_mpesw_is_activated(esw->dev))
423424
dest[dest_idx].type = MLX5_FLOW_DESTINATION_TYPE_UPLINK;
424425
}
425426
if (esw_attr->dests[attr_idx].flags & MLX5_ESW_DEST_ENCAP) {

0 commit comments

Comments
 (0)