net: ethtool: ioctl: concentrate the locking
authorJakub Kicinski <kuba@kernel.org>
Fri, 5 Jun 2026 00:29:10 +0000 (17:29 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 9 Jun 2026 17:13:06 +0000 (10:13 -0700)
commitf58a40d07be39823abf2fa1f73b6a839580404f0
treeb4b4afe43215f2c97bd05a339579d3c27b9c691e
parent732fa5ced1cc82bbdae3d05e5b364c7b6ecf04c3
net: ethtool: ioctl: concentrate the locking

Add another layer of helper functions to make upcoming locking
changes easier. Otherwise we'd need a pretty complex goto
structure. netdev instance lock is now taken slightly sooner
but that should not be an issue since rtnl_lock is already held,
anyway.

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-11-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/ioctl.c