aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netdev_rx_queue.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2025-03-25 10:04:55 -0700
committerJakub Kicinski <kuba@kernel.org>2025-03-25 10:06:49 -0700
commit7bd2e6b74ad56a49459ba84e8d4fa3730055ab5e (patch)
treef3a934ee1001a31e62f38e7cef6c014efa7f6f56 /include/net/netdev_rx_queue.h
parentMerge branch 'virtio_net-fixes-and-improvements' (diff)
parentnet: protect rxq->mp_params with the instance lock (diff)
downloadlinux-7bd2e6b74ad56a49459ba84e8d4fa3730055ab5e.tar.gz
linux-7bd2e6b74ad56a49459ba84e8d4fa3730055ab5e.zip
Merge branch 'net-skip-taking-rtnl_lock-for-queue-get'
Jakub Kicinski says: ==================== net: skip taking rtnl_lock for queue GET (prep) Skip taking rtnl_lock for queue GET ops on devices which opt into running all ops under the instance lock. In preparating for performing queue ops without rtnl lock clarify the protection of queue-related fields. v1: https://lore.kernel.org/20250312223507.805719-1-kuba@kernel.org ==================== Link: https://patch.msgid.link/20250324224537.248800-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/netdev_rx_queue.h')
-rw-r--r--include/net/netdev_rx_queue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netdev_rx_queue.h b/include/net/netdev_rx_queue.h
index af40842f229d..b2238b551dce 100644
--- a/include/net/netdev_rx_queue.h
+++ b/include/net/netdev_rx_queue.h
@@ -24,7 +24,7 @@ struct netdev_rx_queue {
struct xsk_buff_pool *pool;
#endif
/* NAPI instance for the queue
- * Readers and writers must hold RTNL
+ * "ops protected", see comment about net_device::lock
*/
struct napi_struct *napi;
struct pp_memory_provider_params mp_params;