From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3096841E34; Thu, 9 Mar 2023 03:07:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DE30C427F5; Thu, 9 Mar 2023 03:07:47 +0100 (CET) Received: from corp-ob08.yahoo-corp.jp (corp-ob08.yahoo-corp.jp [183.79.94.93]) by mails.dpdk.org (Postfix) with ESMTP id 2BD3140ED7 for ; Thu, 9 Mar 2023 03:07:42 +0100 (CET) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01lp2176.outbound.protection.outlook.com [104.47.23.176]) by corp-ob08.yahoo-corp.jp (Postfix) with ESMTPS id DAA3619FB18B; Thu, 9 Mar 2023 11:07:40 +0900 (JST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jRrVOk/yKM/BhgTvS6j9AVhtoQUmQI2zIa5rZc7LrMx10sIy1YBp26AA2pwdyAB3P5VhiUqCd90gzNO5BIwuDbWpbkcBMUy9jZv6HITBRRwuAxQ5UDVKbMF8u6mU8alBD2ajFzTQY0zhs0+kAcrYrWOzRv1OLUNe08BMMDpZnlx73Vr7gLxe2dkrat8OeNk9qpdByKnTVTxugv/EIHKpgb8Uf81ubvoLvRce4iuaFg51Kia42yFLk/3z+xgJ8fdJL974nQrBzlV1d8GGPBG2mj72CANWtfpsRkUQzbBk+o4EuMxgMFn4VplZUsBKkPE74A+2WL4FNgOPRrBGUTBJFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RSThWn3W9RkhmPqI7UNxIwmH9L9jQ3G6Zdt//Chc8ms=; b=fGjzHypSbKQkgiWwfizU0ghptLH3U8JPoAnefpf3gTfYvOm5cLx5jbJRZ3NmJbVZIMaPEAORXr9gYnSOm8LiyUwD+eSLHcLtnLvSrOU70K/JR1p8AVn+H+AhcbG+ksZ64r4SJ9x32CMRU1vY1zP7GpjBoC8XTtB6J3T4fUTFV0CIbKjawKWmUzOK8NZqzxCBzWIv9VZApaxREzv5MhTbGH8L5HYpmbXoVaNTDJKKenSEhKD/abR7jPypdnH9p+z/Ag8M6RhoAv+xnoEF+CYLPEtyejQUy9g6m03WjOU9EHm2V1xV/Vy77FRuRJW6wIqJC06750513TYSewfJcmFQ7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=yahoo-corp.jp; dmarc=pass action=none header.from=yahoo-corp.jp; dkim=pass header.d=yahoo-corp.jp; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo-corp.jp; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RSThWn3W9RkhmPqI7UNxIwmH9L9jQ3G6Zdt//Chc8ms=; b=bdSfEUeS2tUmQplqfqNRUoQHzU24+Y8C4THVQE3IzT2JoJAfXfmQTTZGoHZqjWzQxTyjKEQ+4DOzQXBQQn0gY6obwTN0f6JEXB1+LMvtBDZGskKHq/77yPnLnmKkJg+ZesxzC0ePp+3ijaiBUHc2/MI0JkDCXInyLGoSvmVpFec= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=yahoo-corp.jp; Received: from TY2PR01MB4107.jpnprd01.prod.outlook.com (2603:1096:404:d8::23) by OS3PR01MB9914.jpnprd01.prod.outlook.com (2603:1096:604:1ee::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.18; Thu, 9 Mar 2023 02:07:38 +0000 Received: from TY2PR01MB4107.jpnprd01.prod.outlook.com ([fe80::61fe:e4c3:a819:6ce6]) by TY2PR01MB4107.jpnprd01.prod.outlook.com ([fe80::61fe:e4c3:a819:6ce6%7]) with mapi id 15.20.6178.019; Thu, 9 Mar 2023 02:07:38 +0000 From: Nobuhiro MIKI To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, Nobuhiro MIKI Subject: [PATCH 1/2] vhost: fix constants to follow new naming convension Date: Thu, 9 Mar 2023 11:07:20 +0900 Message-Id: <20230309020721.22164-2-nmiki@yahoo-corp.jp> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230309020721.22164-1-nmiki@yahoo-corp.jp> References: <20230309020721.22164-1-nmiki@yahoo-corp.jp> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: TYAPR01CA0080.jpnprd01.prod.outlook.com (2603:1096:404:2c::20) To TY2PR01MB4107.jpnprd01.prod.outlook.com (2603:1096:404:d8::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY2PR01MB4107:EE_|OS3PR01MB9914:EE_ X-MS-Office365-Filtering-Correlation-Id: e600986c-ed97-447a-ebaf-08db20430ecf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6EmLtXo7uk0D/6HU8AP/C5MjDmbHC+urC/MPqKKqG115lFXcsL25rDseefhw3r6rj80nE5d5vDOpYuBH3ikCqIZAFYsMTPWY1cwhCwClARVOuY0twCcdKateqJuAXRjFFRxOgZImpSg5Q9wmZPZWGT4HCNnatyqSeHjk8+V4/K1nY/bRhCbkAQci6WdXSDienve5fMeKwCFamsPQRntIX+oUFRsNjZ3mxhd9XLaMBDpcP4Mcqsp5hVSBA5CHHvu8P+xPCtt1qWvyQR1pnDgByiy4FM9W2K81lXP7zAzJNdtlBnyQhK57xXx8VABKiiq9rvKkCpnPDG3LUqryBqLteCdsi/Z3toDHrHHpCcMqOro32SCcG/v+12a2Dx4BHwLiJdMd5lqEet3zWGSe1cCZx66ybk9FHTW0DU4EYacXB2ondxwTukv+XxcdyblE4KCHvWzi8Rvfn8c8txVMsJmlLymvURGIqsB5hKCQVzC5V/yx0niJZMZVM2nBTqBxlYJn4Z1I7XuiNUY36/TWQp9zPl277b9ykIJ8uMLp3z3Y2x2LQw0/SjlvlvXNZHWDlsE3k+Eq/vmEwkx12Yz17weQjYGkMTjwFwv0I6I/SxhKxthUwiqWuVIIGqbLpu9vKJryEYqt88L0s2wub5O3Yp6s/UEdQBGngUmB0NqFpsFbF1es3GxgzS81ZxOxmf/pK4c+ooHoPp+ki4fFkNv9EwJVPA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TY2PR01MB4107.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(366004)(346002)(136003)(396003)(376002)(451199018)(107886003)(6666004)(2616005)(4326008)(8676002)(66946007)(66556008)(66476007)(86362001)(6486002)(966005)(52116002)(5660300002)(316002)(36756003)(38350700002)(2906002)(38100700002)(83380400001)(82960400001)(8936002)(186003)(41300700001)(478600001)(1076003)(6506007)(6512007)(26005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Ln5dH69DHTSV/aUFJtIksQU5ZA5OHYqTuYnQQqQXIUERyJgLK8ktfzPImP/R?= =?us-ascii?Q?6VsC7QTcs8Kzl9yiHnhAlPKbbZRN0LVBfeZjMvoFsoMizbnDGBPE5JCMxDu4?= =?us-ascii?Q?NctT8O1A3BYgllOLReXV/SLJx7ZYsay4qsvcHDtxLi+/zhLQhBJaNOQl3uza?= =?us-ascii?Q?1Ay+A5oBeaiBodBiY+OaNVRTx7k+G7qffvkYFXXXgp7aCz5anp+jM1t78yYf?= =?us-ascii?Q?/9X87AA9nUKSVZzdZtf0YmJgRpmlgFn2553DxP+8UdSb2MHJSWC4aYC2/U/h?= =?us-ascii?Q?FViS/3Rtl4y2BGahJwmF0IF/Vf+wi6Dm3e4WONm44kNjFVcq6y2nTAYY5v2K?= =?us-ascii?Q?YpEnFlrDKzvdzGsYVE/2ybdq3xeKZGDLZmoNIt0ynoKiswmaz0rGK6OoIzMN?= =?us-ascii?Q?5z1YrPsFQ72MEcEw7rsxSMP3UNvFl+IU+rwf7/J2rUzb267XhPlQR20Nm9RM?= =?us-ascii?Q?XfzO4EBA36Vv/HQWS0o6q8wLMXO3fan2YfxkJU1+c/9CVG0UrFeiKcE8CCyF?= =?us-ascii?Q?d2tGZw8uVnzJzviiMSTWP87U76yvfR68AEESVkNAPsnZsGJj3Kj3UH3R7OJZ?= =?us-ascii?Q?QnkK3Bvz0Bv9VjrrEyTGpm+J3jO4X+wRIgIgYGJDPvZ7ViLbgkOOMjOyYR1R?= =?us-ascii?Q?FdixUKVrLFZfpJO9mo+ViWPPwkTKvYkP1y+oXMSc/GG7m1nkZtLlYpcIy8s/?= =?us-ascii?Q?bbr02Ypb+vbmLRDsC5Nh9pfc6jUU1pEmZ13BQtjrC7/oR10SmgqcG04xzETn?= =?us-ascii?Q?gbWrEZ5jc6m63/zJtVJ3g6mmPTfCz/hk4M3r1Umq7Hkx8HKh70CQSZW5wLtA?= =?us-ascii?Q?NO8atYililGWrLwMsa96bcip6ioLebYQV8zWwyNAyenC0kfrbAjr8No3oopy?= =?us-ascii?Q?hc6wSFsee0q0KCawp7VALAULLrz+pyn/n3T+yMLcx+Wl6vF2MitNzrNlt3Z0?= =?us-ascii?Q?zWyCKK0M970uGpb6ZqZfuKOGRsg2EuY0zQq8rJtSAPkfBIoeOcu364rbQHWQ?= =?us-ascii?Q?zAvmf5Y2zS/smd6mu1AsdkzqxsqYUtvc9ZnC8kSlL18WjPxtuOj0FyQ6T0H7?= =?us-ascii?Q?gcJx15Ks23qHfhyW2v1dZD+fok945/EXr5c/kuCV87cTk0kq5socmHhCyP3i?= =?us-ascii?Q?Ka77MUZm6fWji2g7TWmvs4iuo6FDynML5oewDggLhfq+n9l8HJuST3rRwBup?= =?us-ascii?Q?KeI41MnhBN7YV4d54PhiAOIdZXUcFytR3WdzBgIXPgAm26X+klOz3QGjjAGF?= =?us-ascii?Q?5O07/JYsOznW17oWJOSYsETMMS88JOni2yz2xr8b7R3+DX+V4ToO0Ea35DgP?= =?us-ascii?Q?wdJa9TrwtyVKMcjqEosqiFrnwn7Mjlil7qsTqzEHnVKjoa5UvCxnDQ1Q0VMk?= =?us-ascii?Q?OT4VdzH1yFf6HtDI8bJ44oQFKQmgmF79d2hrQYILUjmvtnbK0J0mJ3tVQKjd?= =?us-ascii?Q?ufFg2G/fwpx4HS8xA7/yMPd3xuWrMMWo6Pir7v8QWTU+Rk1geGZmVZVCJ0DF?= =?us-ascii?Q?eTl2taTDa6VqQN8G21VM28X6amme6K6HMcol5WTL/1FZCMTUz+xUAj7JiflP?= =?us-ascii?Q?lxg/fEsjYrtCeufKBchbc1nCfwTKQzSJ4l1i2KIi?= X-OriginatorOrg: yahoo-corp.jp X-MS-Exchange-CrossTenant-Network-Message-Id: e600986c-ed97-447a-ebaf-08db20430ecf X-MS-Exchange-CrossTenant-AuthSource: TY2PR01MB4107.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2023 02:07:38.7868 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a208d369-cd4e-4f87-b119-98eaf31df2c3 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uTzjeIH6TDW33woAgcb4VVAbqa5fl62AvgkjSiiusks7FKx1JKGqysrPNMlP28veZ3/54lgAKLEyOzNi6ujsAA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB9914 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org DPDK apps (e.g. dpdk-skeleton) output this name during negotiation. But, it is not consistent when debugging using QEMU as a front-end, for example. This is because QEMU already follows new naming convention [1]. Some type names and variable names, such as VhostUserSlaveRequest, are still in old naming convension. But, in this patch we only focus on constants. [1] https://qemu-project.gitlab.io/qemu/interop/vhost-user.html Signed-off-by: Nobuhiro MIKI --- drivers/vdpa/ifc/ifcvf_vdpa.c | 4 ++-- drivers/vdpa/mlx5/mlx5_vdpa.c | 4 ++-- drivers/vdpa/sfc/sfc_vdpa_ops.c | 4 ++-- lib/vhost/rte_vhost.h | 8 ++++---- lib/vhost/vhost_user.c | 14 +++++++------- lib/vhost/vhost_user.h | 14 +++++++------- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/vdpa/ifc/ifcvf_vdpa.c b/drivers/vdpa/ifc/ifcvf_vdpa.c index 4a87673682fc..fe4d278c5380 100644 --- a/drivers/vdpa/ifc/ifcvf_vdpa.c +++ b/drivers/vdpa/ifc/ifcvf_vdpa.c @@ -1315,8 +1315,8 @@ ifcvf_get_vdpa_features(struct rte_vdpa_device *vdev, uint64_t *features) #define VDPA_SUPPORTED_PROTOCOL_FEATURES \ (1ULL << VHOST_USER_PROTOCOL_F_REPLY_ACK | \ - 1ULL << VHOST_USER_PROTOCOL_F_SLAVE_REQ | \ - 1ULL << VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD | \ + 1ULL << VHOST_USER_PROTOCOL_F_BACKEND_REQ | \ + 1ULL << VHOST_USER_PROTOCOL_F_BACKEND_SEND_FD | \ 1ULL << VHOST_USER_PROTOCOL_F_HOST_NOTIFIER | \ 1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD | \ 1ULL << VHOST_USER_PROTOCOL_F_MQ | \ diff --git a/drivers/vdpa/mlx5/mlx5_vdpa.c b/drivers/vdpa/mlx5/mlx5_vdpa.c index f8dfa9513311..f1737f82a8ae 100644 --- a/drivers/vdpa/mlx5/mlx5_vdpa.c +++ b/drivers/vdpa/mlx5/mlx5_vdpa.c @@ -37,8 +37,8 @@ (1ULL << VIRTIO_NET_F_MTU)) #define MLX5_VDPA_PROTOCOL_FEATURES \ - ((1ULL << VHOST_USER_PROTOCOL_F_SLAVE_REQ) | \ - (1ULL << VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD) | \ + ((1ULL << VHOST_USER_PROTOCOL_F_BACKEND_REQ) | \ + (1ULL << VHOST_USER_PROTOCOL_F_BACKEND_SEND_FD) | \ (1ULL << VHOST_USER_PROTOCOL_F_HOST_NOTIFIER) | \ (1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD) | \ (1ULL << VHOST_USER_PROTOCOL_F_MQ) | \ diff --git a/drivers/vdpa/sfc/sfc_vdpa_ops.c b/drivers/vdpa/sfc/sfc_vdpa_ops.c index 6401d4e16f25..e88c7eeaa609 100644 --- a/drivers/vdpa/sfc/sfc_vdpa_ops.c +++ b/drivers/vdpa/sfc/sfc_vdpa_ops.c @@ -21,8 +21,8 @@ /* These protocol features are needed to enable notifier ctrl */ #define SFC_VDPA_PROTOCOL_FEATURES \ ((1ULL << VHOST_USER_PROTOCOL_F_REPLY_ACK) | \ - (1ULL << VHOST_USER_PROTOCOL_F_SLAVE_REQ) | \ - (1ULL << VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD) | \ + (1ULL << VHOST_USER_PROTOCOL_F_BACKEND_REQ) | \ + (1ULL << VHOST_USER_PROTOCOL_F_BACKEND_SEND_FD) | \ (1ULL << VHOST_USER_PROTOCOL_F_HOST_NOTIFIER) | \ (1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD) | \ (1ULL << VHOST_USER_PROTOCOL_F_MQ)) diff --git a/lib/vhost/rte_vhost.h b/lib/vhost/rte_vhost.h index a395843fe96d..ed255fc6c51f 100644 --- a/lib/vhost/rte_vhost.h +++ b/lib/vhost/rte_vhost.h @@ -80,8 +80,8 @@ extern "C" { #define VHOST_USER_PROTOCOL_F_NET_MTU 4 #endif -#ifndef VHOST_USER_PROTOCOL_F_SLAVE_REQ -#define VHOST_USER_PROTOCOL_F_SLAVE_REQ 5 +#ifndef VHOST_USER_PROTOCOL_F_BACKEND_REQ +#define VHOST_USER_PROTOCOL_F_BACKEND_REQ 5 #endif #ifndef VHOST_USER_PROTOCOL_F_CRYPTO_SESSION @@ -96,8 +96,8 @@ extern "C" { #define VHOST_USER_PROTOCOL_F_CONFIG 9 #endif -#ifndef VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD -#define VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD 10 +#ifndef VHOST_USER_PROTOCOL_F_BACKEND_SEND_FD +#define VHOST_USER_PROTOCOL_F_BACKEND_SEND_FD 10 #endif #ifndef VHOST_USER_PROTOCOL_F_HOST_NOTIFIER diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c index 9e361082dc9b..cd4104ea5ce0 100644 --- a/lib/vhost/vhost_user.c +++ b/lib/vhost/vhost_user.c @@ -2846,7 +2846,7 @@ VHOST_MESSAGE_HANDLER(VHOST_USER_GET_QUEUE_NUM, vhost_user_get_queue_num, false) VHOST_MESSAGE_HANDLER(VHOST_USER_SET_VRING_ENABLE, vhost_user_set_vring_enable, false) \ VHOST_MESSAGE_HANDLER(VHOST_USER_SEND_RARP, vhost_user_send_rarp, false) \ VHOST_MESSAGE_HANDLER(VHOST_USER_NET_SET_MTU, vhost_user_net_set_mtu, false) \ -VHOST_MESSAGE_HANDLER(VHOST_USER_SET_SLAVE_REQ_FD, vhost_user_set_req_fd, true) \ +VHOST_MESSAGE_HANDLER(VHOST_USER_SET_BACKEND_REQ_FD, vhost_user_set_req_fd, true) \ VHOST_MESSAGE_HANDLER(VHOST_USER_IOTLB_MSG, vhost_user_iotlb_msg, false) \ VHOST_MESSAGE_HANDLER(VHOST_USER_GET_CONFIG, vhost_user_get_config, false) \ VHOST_MESSAGE_HANDLER(VHOST_USER_SET_CONFIG, vhost_user_set_config, false) \ @@ -3143,7 +3143,7 @@ vhost_user_msg_handler(int vid, int fd) case VHOST_USER_SET_VRING_ENABLE: case VHOST_USER_SEND_RARP: case VHOST_USER_NET_SET_MTU: - case VHOST_USER_SET_SLAVE_REQ_FD: + case VHOST_USER_SET_BACKEND_REQ_FD: if (!(dev->flags & VIRTIO_DEV_VDPA_CONFIGURED)) { vhost_user_lock_all_queue_pairs(dev); unlock_required = 1; @@ -3307,7 +3307,7 @@ vhost_user_iotlb_miss(struct virtio_net *dev, uint64_t iova, uint8_t perm) int ret; struct vhu_msg_context ctx = { .msg = { - .request.slave = VHOST_USER_SLAVE_IOTLB_MSG, + .request.slave = VHOST_USER_BACKEND_IOTLB_MSG, .flags = VHOST_USER_VERSION, .size = sizeof(ctx.msg.payload.iotlb), .payload.iotlb = { @@ -3334,7 +3334,7 @@ rte_vhost_slave_config_change(int vid, bool need_reply) { struct vhu_msg_context ctx = { .msg = { - .request.slave = VHOST_USER_SLAVE_CONFIG_CHANGE_MSG, + .request.slave = VHOST_USER_BACKEND_CONFIG_CHANGE_MSG, .flags = VHOST_USER_VERSION, .size = 0, } @@ -3366,7 +3366,7 @@ static int vhost_user_slave_set_vring_host_notifier(struct virtio_net *dev, int ret; struct vhu_msg_context ctx = { .msg = { - .request.slave = VHOST_USER_SLAVE_VRING_HOST_NOTIFIER_MSG, + .request.slave = VHOST_USER_BACKEND_VRING_HOST_NOTIFIER_MSG, .flags = VHOST_USER_VERSION | VHOST_USER_NEED_REPLY, .size = sizeof(ctx.msg.payload.area), .payload.area = { @@ -3410,9 +3410,9 @@ int rte_vhost_host_notifier_ctrl(int vid, uint16_t qid, bool enable) if (!(dev->features & (1ULL << VIRTIO_F_VERSION_1)) || !(dev->features & (1ULL << VHOST_USER_F_PROTOCOL_FEATURES)) || !(dev->protocol_features & - (1ULL << VHOST_USER_PROTOCOL_F_SLAVE_REQ)) || + (1ULL << VHOST_USER_PROTOCOL_F_BACKEND_REQ)) || !(dev->protocol_features & - (1ULL << VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD)) || + (1ULL << VHOST_USER_PROTOCOL_F_BACKEND_SEND_FD)) || !(dev->protocol_features & (1ULL << VHOST_USER_PROTOCOL_F_HOST_NOTIFIER))) return -ENOTSUP; diff --git a/lib/vhost/vhost_user.h b/lib/vhost/vhost_user.h index 8ecca6859707..8e418414ba94 100644 --- a/lib/vhost/vhost_user.h +++ b/lib/vhost/vhost_user.h @@ -18,9 +18,9 @@ (1ULL << VHOST_USER_PROTOCOL_F_RARP) | \ (1ULL << VHOST_USER_PROTOCOL_F_REPLY_ACK) | \ (1ULL << VHOST_USER_PROTOCOL_F_NET_MTU) | \ - (1ULL << VHOST_USER_PROTOCOL_F_SLAVE_REQ) | \ + (1ULL << VHOST_USER_PROTOCOL_F_BACKEND_REQ) | \ (1ULL << VHOST_USER_PROTOCOL_F_CRYPTO_SESSION) | \ - (1ULL << VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD) | \ + (1ULL << VHOST_USER_PROTOCOL_F_BACKEND_SEND_FD) | \ (1ULL << VHOST_USER_PROTOCOL_F_HOST_NOTIFIER) | \ (1ULL << VHOST_USER_PROTOCOL_F_PAGEFAULT) | \ (1ULL << VHOST_USER_PROTOCOL_F_STATUS)) @@ -47,7 +47,7 @@ typedef enum VhostUserRequest { VHOST_USER_SET_VRING_ENABLE = 18, VHOST_USER_SEND_RARP = 19, VHOST_USER_NET_SET_MTU = 20, - VHOST_USER_SET_SLAVE_REQ_FD = 21, + VHOST_USER_SET_BACKEND_REQ_FD = 21, VHOST_USER_IOTLB_MSG = 22, VHOST_USER_GET_CONFIG = 24, VHOST_USER_SET_CONFIG = 25, @@ -63,10 +63,10 @@ typedef enum VhostUserRequest { } VhostUserRequest; typedef enum VhostUserSlaveRequest { - VHOST_USER_SLAVE_NONE = 0, - VHOST_USER_SLAVE_IOTLB_MSG = 1, - VHOST_USER_SLAVE_CONFIG_CHANGE_MSG = 2, - VHOST_USER_SLAVE_VRING_HOST_NOTIFIER_MSG = 3, + VHOST_USER_BACKEND_NONE = 0, + VHOST_USER_BACKEND_IOTLB_MSG = 1, + VHOST_USER_BACKEND_CONFIG_CHANGE_MSG = 2, + VHOST_USER_BACKEND_VRING_HOST_NOTIFIER_MSG = 3, } VhostUserSlaveRequest; typedef struct VhostUserMemoryRegion { -- 2.31.1