net/mlx5e: Support ETH_RSS_HASH_XOR
The ConnectX-4 HW implements inverted XOR8. To make it act as XOR we re-order the HW RSS indirection table. Set XOR to be the default RSS hash function and add ethtool API to control it. Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
fda19e83fb
commit
2be6967cdb
@@ -1936,9 +1936,9 @@ enum {
|
||||
};
|
||||
|
||||
enum {
|
||||
MLX5_TIRC_RX_HASH_FN_HASH_NONE = 0x0,
|
||||
MLX5_TIRC_RX_HASH_FN_HASH_INVERTED_XOR8 = 0x1,
|
||||
MLX5_TIRC_RX_HASH_FN_HASH_TOEPLITZ = 0x2,
|
||||
MLX5_RX_HASH_FN_NONE = 0x0,
|
||||
MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1,
|
||||
MLX5_RX_HASH_FN_TOEPLITZ = 0x2,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
Reference in New Issue
Block a user