Add the uapi header for the "vsock" generic netlink family, from the
pending kernel series that adds it. This is only here so that the
following patch builds, and is meant to be replaced by the usual kernel
header sync once the series is merged.

Link: 
https://lore.kernel.org/all/[email protected]/
Signed-off-by: Bobby Eshleman <[email protected]>
---
 include/uapi/linux/vsock_netlink.h | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/include/uapi/linux/vsock_netlink.h 
b/include/uapi/linux/vsock_netlink.h
new file mode 100644
index 000000000000..adf0fbc50ad5
--- /dev/null
+++ b/include/uapi/linux/vsock_netlink.h
@@ -0,0 +1,28 @@
+/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR 
BSD-3-Clause) */
+/* Do not edit directly, auto-generated from: */
+/*     Documentation/netlink/specs/vsock.yaml */
+/* YNL-GEN uapi header */
+/* To regenerate run: tools/net/ynl/ynl-regen.sh */
+
+#ifndef _UAPI_LINUX_VSOCK_NETLINK_H
+#define _UAPI_LINUX_VSOCK_NETLINK_H
+
+#define VSOCK_FAMILY_NAME      "vsock"
+#define VSOCK_FAMILY_VERSION   1
+
+enum {
+       VSOCK_A_NETNS_ID = 1,
+
+       __VSOCK_A_MAX,
+       VSOCK_A_MAX = (__VSOCK_A_MAX - 1)
+};
+
+enum {
+       VSOCK_CMD_DEV_NETNS_SET = 1,
+       VSOCK_CMD_DEV_NETNS_GET,
+
+       __VSOCK_CMD_MAX,
+       VSOCK_CMD_MAX = (__VSOCK_CMD_MAX - 1)
+};
+
+#endif /* _UAPI_LINUX_VSOCK_NETLINK_H */

-- 
2.53.0-Meta


Reply via email to