Commit 2c3b6d7c authored by Sameeh Jubran's avatar Sameeh Jubran Committed by Greg Kroah-Hartman

net: ena: ethtool: use correct value for crc32 hash

[ Upstream commit 886d2089 ]

Up till kernel 4.11 there was no enum defined for crc32 hash in ethtool,
thus the xor enum was used for supporting crc32.

Fixes: 1738cd3e ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)")
Signed-off-by: default avatarSameeh Jubran <sameehj@amazon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8bb98ec4
...@@ -706,7 +706,7 @@ static int ena_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, ...@@ -706,7 +706,7 @@ static int ena_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key,
func = ETH_RSS_HASH_TOP; func = ETH_RSS_HASH_TOP;
break; break;
case ENA_ADMIN_CRC32: case ENA_ADMIN_CRC32:
func = ETH_RSS_HASH_XOR; func = ETH_RSS_HASH_CRC32;
break; break;
default: default:
netif_err(adapter, drv, netdev, netif_err(adapter, drv, netdev,
...@@ -752,7 +752,7 @@ static int ena_set_rxfh(struct net_device *netdev, const u32 *indir, ...@@ -752,7 +752,7 @@ static int ena_set_rxfh(struct net_device *netdev, const u32 *indir,
case ETH_RSS_HASH_TOP: case ETH_RSS_HASH_TOP:
func = ENA_ADMIN_TOEPLITZ; func = ENA_ADMIN_TOEPLITZ;
break; break;
case ETH_RSS_HASH_XOR: case ETH_RSS_HASH_CRC32:
func = ENA_ADMIN_CRC32; func = ENA_ADMIN_CRC32;
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment