]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ethtool: move rxfh_fields callbacks under the rss_lock
authorJakub Kicinski <kuba@kernel.org>
Thu, 26 Jun 2025 20:28:47 +0000 (13:28 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 30 Jun 2025 15:41:24 +0000 (08:41 -0700)
commit739d18cce105ce3c8437ad56bec3fbe62f0210bb
treebc59f40f9855d3806c8da78454b763c7c2bff45c
parent5ec353dbff4fd5fed21fa2104c3e01444cc06c89
net: ethtool: move rxfh_fields callbacks under the rss_lock

Netlink code will want to perform the RSS_SET operation atomically
under the rss_lock. sfc wants to hold the rss_lock in rxfh_fields_get,
which makes that difficult. Lets move the locking up to the core
so that for all driver-facing callbacks rss_lock is taken consistently
by the core.

Link: https://patch.msgid.link/20250626202848.104457-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/ethtool_common.c
net/ethtool/ioctl.c