net/mlx5e: Support ETH_RSS_HASH_XOR
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 23 Jul 2015 20:35:56 +0000 (23:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 07:29:16 +0000 (00:29 -0700)
commit2be6967cdbc95a9960b620defedbf5e02e2af619
tree9ee191679bcef818809fc24b0c9a52cfa23230e0
parentfda19e83fb615edb1555e7a07130695cf0073d20
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>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
include/linux/mlx5/mlx5_ifc.h