From patchwork Tue Sep 13 09:55:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hao Chen X-Patchwork-Id: 116240 X-Patchwork-Delegate: maxime.coquelin@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9DE4CA0032; Tue, 13 Sep 2022 11:55:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4364140156; Tue, 13 Sep 2022 11:55:26 +0200 (CEST) Received: from out29-219.mail.aliyun.com (out29-219.mail.aliyun.com [115.124.29.219]) by mails.dpdk.org (Postfix) with ESMTP id 8DC9F40151 for ; Tue, 13 Sep 2022 11:55:24 +0200 (CEST) X-Alimail-AntiSpam: AC=CONTINUE; BC=0.09542287|-1; BR=01201311R681S61rulernew998_84748_2000303; CH=blue; DM=|CONTINUE|false|; DS=CONTINUE|ham_system_inform|0.0191094-0.000380774-0.98051; FP=0|0|0|0|0|-1|-1|-1; HT=ay29a033018047204; MF=chenh@yusur.tech; NM=1; PH=DS; RN=6; RT=6; SR=0; TI=SMTPD_---.PEUYQ6b_1663062920; Received: from localhost.localdomain(mailfrom:chenh@yusur.tech fp:SMTPD_---.PEUYQ6b_1663062920) by smtp.aliyun-inc.com; Tue, 13 Sep 2022 17:55:21 +0800 From: Hao Chen To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, houyl@yusur.tech, zy@yusur.tech, Hao Chen Subject: [PATCH] vhost: enable CONFIG feature Date: Tue, 13 Sep 2022 05:55:19 -0400 Message-Id: <20220913095519.2554445-1-chenh@yusur.tech> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 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 Enable this feature, so that libvirt or qemu can call vdpa vendor driver's ops '.get_config' through 'vhost_net_get_config' to get the mac address of the vdpa hardware without manual configuration. Signed-off-by: Hao Chen --- lib/vhost/vhost_user.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vhost/vhost_user.h b/lib/vhost/vhost_user.h index 8ecca68597..12e8d116f3 100644 --- a/lib/vhost/vhost_user.h +++ b/lib/vhost/vhost_user.h @@ -23,7 +23,8 @@ (1ULL << VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD) | \ (1ULL << VHOST_USER_PROTOCOL_F_HOST_NOTIFIER) | \ (1ULL << VHOST_USER_PROTOCOL_F_PAGEFAULT) | \ - (1ULL << VHOST_USER_PROTOCOL_F_STATUS)) + (1ULL << VHOST_USER_PROTOCOL_F_STATUS) | \ + (1ULL << VHOST_USER_PROTOCOL_F_CONFIG)) typedef enum VhostUserRequest { VHOST_USER_NONE = 0,