naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
7570e2
From c8e6e4e8c15d119aa6586cd1d594f69a7025ed0a Mon Sep 17 00:00:00 2001
7570e2
Message-Id: <c8e6e4e8c15d119aa6586cd1d594f69a7025ed0a.1647984433.git.aclaudi@redhat.com>
7570e2
In-Reply-To: <cef782ca658d695c5ca2d174ba1f89cba6bd84e5.1647984433.git.aclaudi@redhat.com>
7570e2
References: <cef782ca658d695c5ca2d174ba1f89cba6bd84e5.1647984433.git.aclaudi@redhat.com>
7570e2
From: Andrea Claudi <aclaudi@redhat.com>
7570e2
Date: Mon, 21 Mar 2022 16:35:15 +0100
7570e2
Subject: [PATCH] vdpa: align uapi headers
7570e2
7570e2
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2059427
7570e2
Upstream Status: iproute2-next.git commit fa58de9b
7570e2
7570e2
commit fa58de9b0c73e8e02104603d82aa5b92df2a0e0f
7570e2
Author: Stephen Hemminger <stephen@networkplumber.org>
7570e2
Date:   Thu Nov 18 09:56:57 2021 -0800
7570e2
7570e2
    vdpa: align uapi headers
7570e2
7570e2
    Update vdpa headers based on 5.16.0-rc1 and remove redundant
7570e2
    copy.
7570e2
7570e2
    Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
7570e2
---
7570e2
 include/uapi/linux/vdpa.h            | 40 ----------------------------
7570e2
 vdpa/include/uapi/linux/vdpa.h       |  7 +++++
7570e2
 vdpa/include/uapi/linux/virtio_ids.h | 26 ++++++++++++++++++
7570e2
 3 files changed, 33 insertions(+), 40 deletions(-)
7570e2
 delete mode 100644 include/uapi/linux/vdpa.h
7570e2
7570e2
diff --git a/include/uapi/linux/vdpa.h b/include/uapi/linux/vdpa.h
7570e2
deleted file mode 100644
7570e2
index 37ae26b6..00000000
7570e2
--- a/include/uapi/linux/vdpa.h
7570e2
+++ /dev/null
7570e2
@@ -1,40 +0,0 @@
7570e2
-/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
7570e2
-/*
7570e2
- * vdpa device management interface
7570e2
- * Copyright (c) 2020 Mellanox Technologies Ltd. All rights reserved.
7570e2
- */
7570e2
-
7570e2
-#ifndef _LINUX_VDPA_H_
7570e2
-#define _LINUX_VDPA_H_
7570e2
-
7570e2
-#define VDPA_GENL_NAME "vdpa"
7570e2
-#define VDPA_GENL_VERSION 0x1
7570e2
-
7570e2
-enum vdpa_command {
7570e2
-	VDPA_CMD_UNSPEC,
7570e2
-	VDPA_CMD_MGMTDEV_NEW,
7570e2
-	VDPA_CMD_MGMTDEV_GET,		/* can dump */
7570e2
-	VDPA_CMD_DEV_NEW,
7570e2
-	VDPA_CMD_DEV_DEL,
7570e2
-	VDPA_CMD_DEV_GET,		/* can dump */
7570e2
-};
7570e2
-
7570e2
-enum vdpa_attr {
7570e2
-	VDPA_ATTR_UNSPEC,
7570e2
-
7570e2
-	/* bus name (optional) + dev name together make the parent device handle */
7570e2
-	VDPA_ATTR_MGMTDEV_BUS_NAME,		/* string */
7570e2
-	VDPA_ATTR_MGMTDEV_DEV_NAME,		/* string */
7570e2
-	VDPA_ATTR_MGMTDEV_SUPPORTED_CLASSES,	/* u64 */
7570e2
-
7570e2
-	VDPA_ATTR_DEV_NAME,			/* string */
7570e2
-	VDPA_ATTR_DEV_ID,			/* u32 */
7570e2
-	VDPA_ATTR_DEV_VENDOR_ID,		/* u32 */
7570e2
-	VDPA_ATTR_DEV_MAX_VQS,			/* u32 */
7570e2
-	VDPA_ATTR_DEV_MAX_VQ_SIZE,		/* u16 */
7570e2
-
7570e2
-	/* new attributes must be added above here */
7570e2
-	VDPA_ATTR_MAX,
7570e2
-};
7570e2
-
7570e2
-#endif
7570e2
diff --git a/vdpa/include/uapi/linux/vdpa.h b/vdpa/include/uapi/linux/vdpa.h
7570e2
index 37ae26b6..b7eab069 100644
7570e2
--- a/vdpa/include/uapi/linux/vdpa.h
7570e2
+++ b/vdpa/include/uapi/linux/vdpa.h
7570e2
@@ -17,6 +17,7 @@ enum vdpa_command {
7570e2
 	VDPA_CMD_DEV_NEW,
7570e2
 	VDPA_CMD_DEV_DEL,
7570e2
 	VDPA_CMD_DEV_GET,		/* can dump */
7570e2
+	VDPA_CMD_DEV_CONFIG_GET,	/* can dump */
7570e2
 };
7570e2
 
7570e2
 enum vdpa_attr {
7570e2
@@ -32,6 +33,12 @@ enum vdpa_attr {
7570e2
 	VDPA_ATTR_DEV_VENDOR_ID,		/* u32 */
7570e2
 	VDPA_ATTR_DEV_MAX_VQS,			/* u32 */
7570e2
 	VDPA_ATTR_DEV_MAX_VQ_SIZE,		/* u16 */
7570e2
+	VDPA_ATTR_DEV_MIN_VQ_SIZE,		/* u16 */
7570e2
+
7570e2
+	VDPA_ATTR_DEV_NET_CFG_MACADDR,		/* binary */
7570e2
+	VDPA_ATTR_DEV_NET_STATUS,		/* u8 */
7570e2
+	VDPA_ATTR_DEV_NET_CFG_MAX_VQP,		/* u16 */
7570e2
+	VDPA_ATTR_DEV_NET_CFG_MTU,		/* u16 */
7570e2
 
7570e2
 	/* new attributes must be added above here */
7570e2
 	VDPA_ATTR_MAX,
7570e2
diff --git a/vdpa/include/uapi/linux/virtio_ids.h b/vdpa/include/uapi/linux/virtio_ids.h
7570e2
index bc1c0621..80d76b75 100644
7570e2
--- a/vdpa/include/uapi/linux/virtio_ids.h
7570e2
+++ b/vdpa/include/uapi/linux/virtio_ids.h
7570e2
@@ -51,8 +51,34 @@
7570e2
 #define VIRTIO_ID_PSTORE		22 /* virtio pstore device */
7570e2
 #define VIRTIO_ID_IOMMU			23 /* virtio IOMMU */
7570e2
 #define VIRTIO_ID_MEM			24 /* virtio mem */
7570e2
+#define VIRTIO_ID_SOUND			25 /* virtio sound */
7570e2
 #define VIRTIO_ID_FS			26 /* virtio filesystem */
7570e2
 #define VIRTIO_ID_PMEM			27 /* virtio pmem */
7570e2
+#define VIRTIO_ID_RPMB			28 /* virtio rpmb */
7570e2
 #define VIRTIO_ID_MAC80211_HWSIM	29 /* virtio mac80211-hwsim */
7570e2
+#define VIRTIO_ID_VIDEO_ENCODER		30 /* virtio video encoder */
7570e2
+#define VIRTIO_ID_VIDEO_DECODER		31 /* virtio video decoder */
7570e2
+#define VIRTIO_ID_SCMI			32 /* virtio SCMI */
7570e2
+#define VIRTIO_ID_NITRO_SEC_MOD		33 /* virtio nitro secure module*/
7570e2
+#define VIRTIO_ID_I2C_ADAPTER		34 /* virtio i2c adapter */
7570e2
+#define VIRTIO_ID_WATCHDOG		35 /* virtio watchdog */
7570e2
+#define VIRTIO_ID_CAN			36 /* virtio can */
7570e2
+#define VIRTIO_ID_DMABUF		37 /* virtio dmabuf */
7570e2
+#define VIRTIO_ID_PARAM_SERV		38 /* virtio parameter server */
7570e2
+#define VIRTIO_ID_AUDIO_POLICY		39 /* virtio audio policy */
7570e2
+#define VIRTIO_ID_BT			40 /* virtio bluetooth */
7570e2
+#define VIRTIO_ID_GPIO			41 /* virtio gpio */
7570e2
+
7570e2
+/*
7570e2
+ * Virtio Transitional IDs
7570e2
+ */
7570e2
+
7570e2
+#define VIRTIO_TRANS_ID_NET		1000 /* transitional virtio net */
7570e2
+#define VIRTIO_TRANS_ID_BLOCK		1001 /* transitional virtio block */
7570e2
+#define VIRTIO_TRANS_ID_BALLOON		1002 /* transitional virtio balloon */
7570e2
+#define VIRTIO_TRANS_ID_CONSOLE		1003 /* transitional virtio console */
7570e2
+#define VIRTIO_TRANS_ID_SCSI		1004 /* transitional virtio SCSI */
7570e2
+#define VIRTIO_TRANS_ID_RNG		1005 /* transitional virtio rng */
7570e2
+#define VIRTIO_TRANS_ID_9P		1009 /* transitional virtio 9p console */
7570e2
 
7570e2
 #endif /* _LINUX_VIRTIO_IDS_H */
7570e2
-- 
7570e2
2.35.1
7570e2