diff options
author | Mark Bloch <mbloch@nvidia.com> | 2022-04-10 11:58:05 +0000 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-05-04 00:00:07 -0700 |
commit | a042d7f5bb68c47f6e0e546ca367d14e1e4b25ba (patch) | |
tree | 0e6bf513f6f05ad7675b83252da98867ad508d4d /drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c | |
parent | fc3d3db07b35885f238e1fa06b9f04a8fa7a62d0 (diff) | |
download | linux-a042d7f5bb68c47f6e0e546ca367d14e1e4b25ba.tar.gz linux-a042d7f5bb68c47f6e0e546ca367d14e1e4b25ba.tar.bz2 linux-a042d7f5bb68c47f6e0e546ca367d14e1e4b25ba.zip |
net/mlx5: Fix matching on inner TTC
The cited commits didn't use proper matching on inner TTC
as a result distribution of encapsulated packets wasn't symmetric
between the physical ports.
Fixes: 4c71ce50d2fe ("net/mlx5: Support partial TTC rules")
Fixes: 8e25a2bc6687 ("net/mlx5: Lag, add support to create TTC tables for LAG port selection")
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c b/drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c index b63dec24747a..b78f2ba25c19 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c @@ -408,6 +408,8 @@ static int mlx5_generate_inner_ttc_table_rules(struct mlx5_core_dev *dev, for (tt = 0; tt < MLX5_NUM_TT; tt++) { struct mlx5_ttc_rule *rule = &rules[tt]; + if (test_bit(tt, params->ignore_dests)) + continue; rule->rule = mlx5_generate_inner_ttc_rule(dev, ft, ¶ms->dests[tt], ttc_rules[tt].etype, |