]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ethtool: move get_rxfh callback under the rss_lock
authorJakub Kicinski <kuba@kernel.org>
Thu, 26 Jun 2025 20:28:48 +0000 (13:28 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 30 Jun 2025 15:41:25 +0000 (08:41 -0700)
commit040cef30b5e67271e3193e0206f82b206fc97095
tree9904df6952d0f6cbfcdb511350606348aa9672ce
parent739d18cce105ce3c8437ad56bec3fbe62f0210bb
net: ethtool: move get_rxfh callback under the rss_lock

We already call get_rxfh under the rss_lock when we read back
context state after changes. Let's be consistent and always
hold the lock. The existing callers are all under rtnl_lock
so this should make no difference in practice, but it makes
the locking rules far less confusing IMHO. Any RSS callback
and any access to the RSS XArray should hold the lock.

Link: https://patch.msgid.link/20250626202848.104457-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/common.c
net/ethtool/ioctl.c
net/ethtool/rss.c