OSDN Git Service

net: ena: allow setting the hash function without changing the key
authorSameeh Jubran <sameehj@amazon.com>
Sun, 3 May 2020 09:52:12 +0000 (09:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 May 2020 22:59:29 +0000 (15:59 -0700)
commitf66c2ea3b18a8cc8e45ff32c636aaefb2ac06315
tree97791c5b385e22cae443c8d75f3bb2b86c47faef
parente9a1de378dd46375f9abfd8de1e6f59ee114a793
net: ena: allow setting the hash function without changing the key

Current code does not allow setting the hash function without
changing the key. This commit enables it.

To achieve this we separate ena_com_get_hash_function() to 2 functions:
ena_com_get_hash_function() - which gets only the hash function, and
ena_com_get_hash_key() - which gets only the hash key.

Also return 0 instead of rc at the end of ena_get_rxfh() since all
previous operations succeeded.

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
drivers/net/ethernet/amazon/ena/ena_com.h
drivers/net/ethernet/amazon/ena/ena_ethtool.c