]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ethtool: optionally skip rtnl_lock in RSS context handlers
authorJakub Kicinski <kuba@kernel.org>
Fri, 5 Jun 2026 00:29:09 +0000 (17:29 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 9 Jun 2026 17:13:05 +0000 (10:13 -0700)
commit732fa5ced1cc82bbdae3d05e5b364c7b6ecf04c3
treeb708137e010bb36ae1efed3a4d680061e9be2d68
parent2526717624ab477fb7df2bf1af6e1f257c72ee0f
net: ethtool: optionally skip rtnl_lock in RSS context handlers

Skip rtnl_lock in RSS context handlers if device is ops-locked.
Fairly trivial conversion. bnxt needed rtnl_lock for changing
the main context but looks like additional contexts are fine
without it.

Note (for review bots?) that ethnl_ops_begin() checks whether
the device is still registered.

Reviewed-by: Eric Dumazet <edumazet@google.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20260605002912.3456868-10-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/rss.c