net: ena: changes to RSS hash key allocation
authorSameeh Jubran <sameehj@amazon.com>
Sun, 3 May 2020 09:52:14 +0000 (09:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 May 2020 22:59:29 +0000 (15:59 -0700)
commit0af3c4e2eab8aa5a904287534e442add36023273
tree89114d8d15ad2b8017251b046549df8217ceeecf
parentc1bd17e51c71dc8214fbccc2b5abea4d31ac65e6
net: ena: changes to RSS hash key allocation

This commit contains 2 cosmetic changes:

1. Use ena_com_check_supported_feature_id() in
   ena_com_hash_key_fill_default_key() instead of rewriting
   its implementation. This also saves us a superfluous admin
   command by using the cached value.

2. Change if conditions in ena_com_rss_init() to be clearer.

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
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