Skip to content

Commit 7ee2ace

Browse files
koct9iSaeed Mahameed
authored andcommitted
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: 2be6967 ("net/mlx5e: Support ETH_RSS_HASH_XOR") Signed-off-by: Konstantin Khlebnikov <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Signed-off-by: Moshe Shemesh <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 8c8811d commit 7ee2ace

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4564,7 +4564,7 @@ void mlx5e_build_rss_params(struct mlx5e_rss_params *rss_params,
45644564
{
45654565
enum mlx5e_traffic_types tt;
45664566

4567-
rss_params->hfunc = ETH_RSS_HASH_XOR;
4567+
rss_params->hfunc = ETH_RSS_HASH_TOP;
45684568
netdev_rss_key_fill(rss_params->toeplitz_hash_key,
45694569
sizeof(rss_params->toeplitz_hash_key));
45704570
mlx5e_build_default_indir_rqt(rss_params->indirection_rqt,

0 commit comments

Comments
 (0)