]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Switch to Toeplitz RSS hash by default
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Fri, 31 Aug 2018 11:29:16 +0000 (14:29 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 9 Apr 2019 19:33:51 +0000 (12:33 -0700)
commit7a417c0edb5a3116e5c3e46079c3a1be4e3df2fc
tree72daf97f1430ce26aa2b97bd5c9d27f07027ac11
parent12130d2164cd54ebd3520fbe4ccd2d0c4fe841f2
net/mlx5e: Switch to Toeplitz RSS hash by default

Although XOR hash function can perform very well on some special use
cases, to align with all drivers, mlx5 driver should use Toeplitz hash
by default.
Toeplitz is more stable for the general use case and it is more standard
and reliable.

On top of that, since XOR (MLX5_RX_HASH_FN_INVERTED_XOR8) gives only a
repeated 8 bits pattern. When used for udp tunneling RSS source port
manipulation it results in fixed source port, which will cause bad RSS
spread.

Fixes: c47ef7ab3ec3 ("net/mlx5e: Support ETH_RSS_HASH_XOR")
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c