]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: enable support of rss hash key and function changes
authorArthur Kiyanovski <akiyano@amazon.com>
Tue, 21 Jul 2020 13:38:09 +0000 (16:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2020 22:59:04 +0000 (15:59 -0700)
commitad18e27a656f65fc929dcb6a82f0788de193aac7
tree3821ca4ff85e2c067cd527bb90bfc308061518db
parent219ed7444dab944c7f0cc30546146223ee76b1de
net: ena: enable support of rss hash key and function changes

Add the rss_configurable_function_key bit to driver_supported_feature.

This bit tells the device that the driver in question supports the
retrieving and updating of RSS function and hash key, and therefore
the device should allow RSS function and key manipulation.

This commit turns on  device support for hash key and RSS function
management. Without this commit this feature is turned off at the
device and appears to the user as unsupported.

This commit concludes the following series of already merged commits:
commit 8136b3c71ff5 ("net: ena: changes to RSS hash key allocation")
commit 4ed5d62cdad5 ("net: ena: change default RSS hash function to Toeplitz")
commit a6b553f09e4a ("net: ena: allow setting the hash function without changing the key")
commit af88bab86e42 ("net: ena: fix error returning in ena_com_get_hash_function()")
commit 27702bf72889 ("net: ena: avoid unnecessary admin command when RSS function set fails")
commit dedefab11eda ("net: ena: rss: do not allocate key when not supported")
commit c1d1a37fb54a ("net: ena: fix incorrect default RSS key")

The above commits represent the last part of the implementation of
this feature, and with them merged the feature can be enabled
in the device.

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_admin_defs.h
drivers/net/ethernet/amazon/ena/ena_netdev.c