]> git.ipfire.org Git - thirdparty/linux.git/commit
net: ethtool: add dedicated callbacks for getting and setting rxfh fields
authorJakub Kicinski <kuba@kernel.org>
Wed, 11 Jun 2025 14:59:44 +0000 (07:59 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Jun 2025 00:16:20 +0000 (17:16 -0700)
commit9bb00786fc61e865e121aa20dd12aa4d1311a990
tree8b10a3834b071f8549bc6165aacf7776f16f4c7b
parentfac4b41741b5cd0826cf0fa5b14e177f70a6b509
net: ethtool: add dedicated callbacks for getting and setting rxfh fields

We mux multiple calls to the drivers via the .get_nfc and .set_nfc
callbacks. This is slightly inconvenient to the drivers as they
have to de-mux them back. It will also be awkward for netlink code
to construct struct ethtool_rxnfc when it wants to get info about
RX Flow Hash, from the RSS module.

Add dedicated driver callbacks. Create struct ethtool_rxfh_fields
which contains only data relevant to RXFH. Maintain the names of
the fields to avoid having to heavily modify the drivers.

For now support both callbacks, once all drivers are converted
ethtool_*et_rxfh_fields() will stop using the rxnfc callbacks.

Link: https://patch.msgid.link/20250611145949.2674086-5-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ethtool.h
net/ethtool/ioctl.c