summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorStanislav Fomichev <sdf@fomichev.me>2025-03-11 07:40:24 -0700
committerJakub Kicinski <kuba@kernel.org>2025-03-12 13:32:35 -0700
commitb6b67141d6f1f736b17aca87e5ecb43b7c3a8205 (patch)
treec95ce336b46729c4c9177cb6550a13bcdcdf0467 /include/net
parent17fef2042338e19ed7b57484da4db9e3a3b47c76 (diff)
net: create netdev_nl_sock to wrap bindings list
No functional changes. Next patches will add more granular locking to netdev_nl_sock. Signed-off-by: Stanislav Fomichev <sdf@fomichev.me> Reviewed-by: Mina Almasry <almasrymina@google.com> Link: https://patch.msgid.link/20250311144026.4154277-2-sdf@fomichev.me Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/netdev_netlink.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/netdev_netlink.h b/include/net/netdev_netlink.h
new file mode 100644
index 000000000000..1599573d35c9
--- /dev/null
+++ b/include/net/netdev_netlink.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __NET_NETDEV_NETLINK_H
+#define __NET_NETDEV_NETLINK_H
+
+#include <linux/list.h>
+
+struct netdev_nl_sock {
+ struct list_head bindings;
+};
+
+#endif /* __NET_NETDEV_NETLINK_H */