]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 4 Sep 2020 19:28:51 +0000 (16:28 -0300)
commit5c448f47c71f04fa6ee2c1411529f9882539b7f9
treee152b164f681d446c2a6efc6c6cf6aca5f0d8d61
parentd44d7e2c0ed41bdd2376acaf6ee797039074739d
net: ena: allow setting the hash function without changing the key

BugLink: https://bugs.launchpad.net/bugs/1890845
commit f66c2ea3b18a8cc8e45ff32c636aaefb2ac06315 upstream.

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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/amazon/ena/ena_com.c
drivers/net/ethernet/amazon/ena/ena_com.h
drivers/net/ethernet/amazon/ena/ena_ethtool.c