Skip to content

Commit 10fbb1c

Browse files
roidayanSaeed Mahameed
authored andcommitted
net/mlx5e: Set peer flow needed also for multipath
Update the predicate that determines if to duplicate rules installed on vport reps to account also for the multipath case. Signed-off-by: Roi Dayan <[email protected]> Reviewed-by: Or Gerlitz <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 68931c7 commit 10fbb1c

File tree

1 file changed

+9
-2
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,8 +2731,15 @@ static bool is_peer_flow_needed(struct mlx5e_tc_flow *flow)
27312731
bool esw_paired = mlx5_devcom_is_paired(attr->in_mdev->priv.devcom,
27322732
MLX5_DEVCOM_ESW_OFFLOADS);
27332733

2734-
return esw_paired && mlx5_lag_is_sriov(attr->in_mdev) &&
2735-
(is_rep_ingress || act_is_encap);
2734+
if (!esw_paired)
2735+
return false;
2736+
2737+
if ((mlx5_lag_is_sriov(attr->in_mdev) ||
2738+
mlx5_lag_is_multipath(attr->in_mdev)) &&
2739+
(is_rep_ingress || act_is_encap))
2740+
return true;
2741+
2742+
return false;
27362743
}
27372744

27382745
static int

0 commit comments

Comments
 (0)