]> git.ipfire.org Git - thirdparty/linux.git/commit
eth: iavf: extend the netdev_lock usage
authorJakub Kicinski <kuba@kernel.org>
Sat, 11 Jan 2025 07:13:39 +0000 (23:13 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Jan 2025 03:08:30 +0000 (19:08 -0800)
commitafc664987ab318c227ebc0f639f5afc921aaf674
treec43e52fb296ffd6df58996dc123ad74bc5fd8b5d
parent37adf101f6f72be4a658ec019912dce67c81660e
eth: iavf: extend the netdev_lock usage

iavf uses the netdev->lock already to protect shapers.
In an upcoming series we'll try to protect NAPI instances
with netdev->lock.

We need to modify the protection a bit. All NAPI related
calls in the driver need to be consistently under the lock.
This will allow us to easily switch to a "we already hold
the lock" NAPI API later.

register_netdevice(), OTOH, must not be called under
the netdev_lock() as we do not intend to have an
"already locked" version of this call.

Link: https://patch.msgid.link/20250111071339.3709071-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/iavf/iavf_main.c