summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStanislav Fomichev <sdf@fomichev.me>2025-03-11 17:40:25 +0300
committerJakub Kicinski <kuba@kernel.org>2025-03-12 23:32:35 +0300
commit10eef096be25f3811ada2b43b108d1b8d8170001 (patch)
treee99c86271c9b175f1e082f021d5c2a353e7d8eb8 /include
parentb6b67141d6f1f736b17aca87e5ecb43b7c3a8205 (diff)
downloadlinux-10eef096be25f3811ada2b43b108d1b8d8170001.tar.xz
net: add granular lock for the netdev netlink socket
As we move away from rtnl_lock for queue ops, introduce per-netdev_nl_sock lock. Signed-off-by: Stanislav Fomichev <sdf@fomichev.me> Reviewed-by: Mina Almasry <almasrymina@google.com> Link: https://patch.msgid.link/20250311144026.4154277-3-sdf@fomichev.me Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/netdev_netlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netdev_netlink.h b/include/net/netdev_netlink.h
index 1599573d35c9..075962dbe743 100644
--- a/include/net/netdev_netlink.h
+++ b/include/net/netdev_netlink.h
@@ -5,6 +5,7 @@
#include <linux/list.h>
struct netdev_nl_sock {
+ struct mutex lock;
struct list_head bindings;
};