]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: rss: do not allocate key when not supported
authorSameeh Jubran <sameehj@amazon.com>
Tue, 11 Feb 2020 15:17:44 +0000 (15:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Feb 2020 01:08:30 +0000 (17:08 -0800)
commitdedefab11eda60f99db06afc51bd5b6d50b03027
tree053a2cd5e4916720ce46d0682daa801d949a8182
parentc1d1a37fb54acc8e51535d4bd09c3788279c3421
net: ena: rss: do not allocate key when not supported

Currently we allocate the key whether the device supports setting the
key or not. This commit adds a check to the allocation function and
handles the error accordingly.

Fixes: e59074db59c6 ("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>
drivers/net/ethernet/amazon/ena/ena_com.c