]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: avoid unnecessary admin command when RSS function set fails
authorArthur Kiyanovski <akiyano@amazon.com>
Sun, 3 May 2020 09:52:10 +0000 (09:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 May 2020 22:59:29 +0000 (15:59 -0700)
commit27702bf728895fa8eaa6cb3c8b2cff5168d8b4e7
tree5dabd3ebb42698edb8910ca8547df1b00f6917ad
parent2f8ad90d7c39d106e38ce92b2c35ab6d496e5daa
net: ena: avoid unnecessary admin command when RSS function set fails

Currently when ena_set_hash_function() fails the hash function is
restored to the previous value by calling an admin command to get
the hash function from the device.

In this commit we avoid the admin command, by saving the previous
hash function before calling ena_set_hash_function() and using this
previous value to restore the hash function in case of failure of
ena_set_hash_function().

Signed-off-by: Sameeh Jubran <sameehj@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