summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en.h
diff options
context:
space:
mode:
authorSaeed Mahameed2015-07-23 22:35:56 +0200
committerDavid S. Miller2015-07-27 09:29:16 +0200
commit2be6967cdbc95a9960b620defedbf5e02e2af619 (patch)
tree9ee191679bcef818809fc24b0c9a52cfa23230e0 /drivers/net/ethernet/mellanox/mlx5/core/en.h
parentMerge branch 'netcp-next' (diff)
downloadkernel-qcow2-linux-2be6967cdbc95a9960b620defedbf5e02e2af619.tar.gz
kernel-qcow2-linux-2be6967cdbc95a9960b620defedbf5e02e2af619.tar.xz
kernel-qcow2-linux-2be6967cdbc95a9960b620defedbf5e02e2af619.zip
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 3d23bd657e3c..61d8433392aa 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 {