net: ena: rss: fix failure to get indirection table
authorSameeh Jubran <sameehj@amazon.com>
Tue, 11 Feb 2020 15:17:45 +0000 (15:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2020 06:53:03 +0000 (07:53 +0100)
commitdd8f138d66181fd0ae3aba4bc62743fe81ebf407
treee38cbd4f756c565556736f2f79cf797c6c54eef4
parent5b705e254c94f9225b3aa0e92534c9d4f34e9d6e
net: ena: rss: fix failure to get indirection table

[ Upstream commit 0c8923c0a64fb5d14bebb9a9065d2dc25ac5e600 ]

On old hardware, getting / setting the hash function is not supported while
gettting / setting the indirection table is.

This commit enables us to still show the indirection table on older
hardwares by setting the hash function and key to NULL.

Fixes: 1738cd3ed342 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)")
Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/amazon/ena/ena_ethtool.c