summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en.h
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@mellanox.com>2015-07-23 23:35:56 +0300
committerDavid S. Miller <davem@davemloft.net>2015-07-27 00:29:16 -0700
commit2be6967cdbc95a9960b620defedbf5e02e2af619 (patch)
tree9ee191679bcef818809fc24b0c9a52cfa23230e0 /drivers/net/ethernet/mellanox/mlx5/core/en.h
parentfda19e83fb615edb1555e7a07130695cf0073d20 (diff)
downloadop-kernel-dev-2be6967cdbc95a9960b620defedbf5e02e2af619.zip
op-kernel-dev-2be6967cdbc95a9960b620defedbf5e02e2af619.tar.gz
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 'drivers/net/ethernet/mellanox/mlx5/core/en.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h
index 3d23bd6..61d8433 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h
@@ -195,6 +195,7 @@ struct mlx5e_params {
u16 rx_hash_log_tbl_sz;
bool lro_en;
u32 lro_wqe_sz;
+ u8 rss_hfunc;
};
enum {
OpenPOWER on IntegriCloud