]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: make ena rxfh support ETH_RSS_HASH_NO_CHANGE
authorArthur Kiyanovski <akiyano@amazon.com>
Tue, 11 Feb 2020 15:17:49 +0000 (15:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Feb 2020 01:08:31 +0000 (17:08 -0800)
commit3d0c6428b86a97df3c3d40a5ef1125ac7cc85771
tree994fdce45471d70e531eb6bd3ec6067661fc5fb3
parenta00f144302130578f97ffc26f98b1a0fea761b5a
net: ena: make ena rxfh support ETH_RSS_HASH_NO_CHANGE

As the name suggests ETH_RSS_HASH_NO_CHANGE is received upon changing
the key or indirection table using ethtool while keeping the same hash
function.

Also add a function for retrieving the current hash function from
the ena-com layer.

Fixes: 42904aea461f ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)")
Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
Signed-off-by: Saeed Bshara <saeedb@amazon.com>
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_com.c
drivers/net/ethernet/amazon/ena/ena_com.h
drivers/net/ethernet/amazon/ena/ena_ethtool.c