Re: [PATCH net-next 05/11] net: protect netdev->napi_list with netdev_lock()
From: Eric Dumazet <edumazet@google.com> Date: 2025-01-14 13:09:42
On Tue, Jan 14, 2025 at 4:51 AM Jakub Kicinski [off-list ref] wrote:
Hold netdev->lock when NAPIs are getting added or removed.
This will allow safe access to NAPI instances of a net_device
without rtnl_lock.
Create a family of helpers which assume the lock is already taken.
Switch iavf to them, as it makes extensive use of netdev->lock,
already.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>