diff options
author | Roi Dayan <roid@mellanox.com> | 2019-02-07 13:09:15 +0100 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-03-01 21:04:18 +0100 |
commit | 10fbb1cdd0a36347106f6522c941e67cd9c3e7c1 (patch) | |
tree | cc6930b5fc8277803541140fe749f59a5520d6ad /drivers/net | |
parent | net/mlx5e: Update check for merged eswitch device (diff) | |
download | linux-10fbb1cdd0a36347106f6522c941e67cd9c3e7c1.tar.xz linux-10fbb1cdd0a36347106f6522c941e67cd9c3e7c1.zip |
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 <roid@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c index 850cf6ecb4d7..b4967a0ff8c7 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c @@ -2731,8 +2731,15 @@ static bool is_peer_flow_needed(struct mlx5e_tc_flow *flow) bool esw_paired = mlx5_devcom_is_paired(attr->in_mdev->priv.devcom, MLX5_DEVCOM_ESW_OFFLOADS); - return esw_paired && mlx5_lag_is_sriov(attr->in_mdev) && - (is_rep_ingress || act_is_encap); + if (!esw_paired) + return false; + + if ((mlx5_lag_is_sriov(attr->in_mdev) || + mlx5_lag_is_multipath(attr->in_mdev)) && + (is_rep_ingress || act_is_encap)) + return true; + + return false; } static int |