]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8136b3c71ff5d21d140e0a23ac00310e5be79a42
tree89114d8d15ad2b8017251b046549df8217ceeecf
parent4ed5d62cdad5e2d22cc6e03f9eb15ad71397891a
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