aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@mellanox.com>2015-07-23 16:35:56 -0400
committerDavid S. Miller <davem@davemloft.net>2015-07-27 03:29:16 -0400
commit2be6967cdbc95a9960b620defedbf5e02e2af619 (patch)
tree9ee191679bcef818809fc24b0c9a52cfa23230e0 /include/linux/mlx5
parentfda19e83fb615edb1555e7a07130695cf0073d20 (diff)
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>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/mlx5_ifc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 6d2f6fee041c..c60a62bba652 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -1936,9 +1936,9 @@ enum {
1936}; 1936};
1937 1937
1938enum { 1938enum {
1939 MLX5_TIRC_RX_HASH_FN_HASH_NONE = 0x0, 1939 MLX5_RX_HASH_FN_NONE = 0x0,
1940 MLX5_TIRC_RX_HASH_FN_HASH_INVERTED_XOR8 = 0x1, 1940 MLX5_RX_HASH_FN_INVERTED_XOR8 = 0x1,
1941 MLX5_TIRC_RX_HASH_FN_HASH_TOEPLITZ = 0x2, 1941 MLX5_RX_HASH_FN_TOEPLITZ = 0x2,
1942}; 1942};
1943 1943
1944enum { 1944enum {