Thread (34 messages) flat view 34 messages, 4 authors, 2025-01-14

Re: [PATCH net-next 05/11] net: protect netdev->napi_list with netdev_lock()

From: Joe Damato <hidden>
Date: 2025-01-14 23:10:55

On Mon, Jan 13, 2025 at 07:51:11PM -0800, Jakub Kicinski 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>
---
 include/linux/netdevice.h                   | 54 ++++++++++++++++++---
 drivers/net/ethernet/intel/iavf/iavf_main.c |  6 +--
 net/core/dev.c                              | 15 ++++--
 3 files changed, 60 insertions(+), 15 deletions(-)
Reviewed-by: Joe Damato <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help