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 15277A00BE; Wed, 20 Apr 2022 15:53:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EE84140C35; Wed, 20 Apr 2022 15:53:05 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id B9653406A2 for ; Wed, 20 Apr 2022 15:53:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650462784; x=1681998784; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=5A4+1TOftK32fXzxoJtSFqIWYCDlLAFoo5fBQ1URu2k=; b=QyktaPXoK2I6o9oKiwqYF7aUBRB6VMYXdPmXP4GpVATkX78NIvFKDxgP bNbdHzMVtvziExJiE/qyuSJFGuhnOXsH1XZzTMHaBevPJu1xNDxxZsOGO EhicVk81E7VWHWMIOpj2cxcIB5fJN3PGtc4X/KxByvm1g9V3sUBmMsw1x Oi3ust8EoPLPZOcc2Ax6nh50Uy/TcoP4bPEHuSpr4XNDCh9zkW1D8T6qW oAxTBS9RsthT1H2ohUfUQ83zTqbs/dlz6333o60m3tsJMLTavLDLEpQ2v scqsgNFfE0IHLr9U74jktMn/X7gQHhaG2KpQamuS0Xz8CNVHpyOGSIeZk Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10322"; a="243961346" X-IronPort-AV: E=Sophos;i="5.90,275,1643702400"; d="scan'208";a="243961346" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2022 06:53:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,275,1643702400"; d="scan'208";a="702644318" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by fmsmga001.fm.intel.com with ESMTP; 20 Apr 2022 06:53:03 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 20 Apr 2022 06:53:02 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 20 Apr 2022 06:53:02 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Wed, 20 Apr 2022 06:53:02 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.106) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Wed, 20 Apr 2022 06:53:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ky3yaw10Fv/axJJNpdvUIVMNP+NIPDP9sgBd0aR494yR9oO34PhmkRRVphkDfPWt7/VdJcod0+ADBksXrc1IBD3Op/3gF7RQLweCgtUYu1P/n4HBclg02lXwLfThKFKBt637OF6+5Q+jlmEfwALSJBr3QDQ/6FRtoI04nGjfjDc/LR7SOByTPqJPs6cZloVL8Rdn3gLwUdQR8a0+BVvSOiK2EM6Npv00fH2uc/5JuWYNOTfNre3hTIdEV1kHDyiOBtj9vWRra7+34QBDDaN6LMLEu6p2ok7lyVu/14qtDw6TDJIvLVayexJDQUJGyBSJTEN7Nkdp5LV7qRkiGzfXwA== 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=HIzfWtMJ3DN8bRfT0ef7n3L9tDMwO3AhdAyfPJlalRc=; b=EcqaGdbEEUGVAqkQFKLxk5aHBTLox4/kSPzO3f/E7WmSssexyOKJFFzyoTe36IjETi0vKs1t8eC0EPrFbjTYMtcUtSC/OjzUlVXA4gLrDf++jo8MGIks7WWC9rEVA1Jswe4+TITE8/00Yi4hL4y7XTQH4IC0UZ1a383K4QJ9sL5wFig/ACENo+1oC677DLtlVdvmY09MJjPrJikxPcbBXUwnakAnVr9He/XJ2ZtaEUwmU1mDcqrGrNjATMaBa1izqZQdMk1e+Tjh5STRUgDzEoO+PloBDmbVat+e0hEG/hwwayIDMfMDZcq6hXnkWVofU7uAAEbtKKtCHgOaEtZ1Nw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SN6PR11MB3504.namprd11.prod.outlook.com (2603:10b6:805:d0::17) by MWHPR11MB1741.namprd11.prod.outlook.com (2603:10b6:300:10d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Wed, 20 Apr 2022 13:53:00 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::4d1d:6453:f00c:cf8a]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::4d1d:6453:f00c:cf8a%6]) with mapi id 15.20.5164.025; Wed, 20 Apr 2022 13:53:00 +0000 From: "Xia, Chenbo" To: "Pei, Andy" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Cao, Gang" , "Liu, Changpeng" Subject: RE: [PATCH v5 03/16] vhost: add support for VHOST_USER_GET_CONFIG and VHOST_USER_SET_CONFIG Thread-Topic: [PATCH v5 03/16] vhost: add support for VHOST_USER_GET_CONFIG and VHOST_USER_SET_CONFIG Thread-Index: AQHYQnootaV/d0GWXU+7ZRONidnwW6z4776Q Date: Wed, 20 Apr 2022 13:53:00 +0000 Message-ID: References: <1643093258-47258-2-git-send-email-andy.pei@intel.com> <1648451862-123318-1-git-send-email-andy.pei@intel.com> <1648451862-123318-4-git-send-email-andy.pei@intel.com> In-Reply-To: <1648451862-123318-4-git-send-email-andy.pei@intel.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.401.20 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d678d795-b3ae-4d50-22e8-08da22d51520 x-ms-traffictypediagnostic: MWHPR11MB1741:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ws0VJGNUe/wPkN0dIz4mThmGn4QvKCt21R91IQvS7ts9qt9OrDJFoZ0B8YsbwwGvYusVLlMIlMtQjWhonKV2zW//rn1+n7SfrT+qXgzzv9PQO5Ka/aGKIrZzWGONY24mhO8pSOZbdzSWjbZ09g4xUaDHVjXZ4xOrSVeL0D4pfQMeHXzmEVQGFbIcF8uV8sDdVV3MjTieY2ymH6bAtzrYZnx7o+cxi5Dqw+5OzDVv2cmuXShEPaS+lZdhTH1ogpmOg6G5mSu7awO4OWf5PwNxrMXKp5XTftCZdcZkM2j26y9XnNh2G4gVPubb9LDEVZNxz/2QQlJYCMDrHgAzOsVsKFAV5KRmS/7ExxkVHIfC9PPbPUWvPMWCr9FKXU3JuMEMeT+W6aVXQL26Fl0WJ7TTNr+I0pXzFu2Zf6fwMJRreYZplAYKUtmA9+kO8gcXwlqR53YmZgndBXSnZTHtzGA1MkOrTchSOfmsQmMJqhHxE+IMzVuYm9jnr892iOW2wHHc9AcWHfIkiZnJgqiZgiKrwu/UqtpqVNhRWYD2QcKSnUp0rvSdXV8A/LklmJOfNm6n+VBpevjBv81TFO94KNHxu3DO5zGe0iNaCeOYJkbQdK6QWCMEk4lc/RqDjKPz/bbmLj/7Im67Xey8wb15Gcd1vdVppRfezLZoaFCoSY5leAK4KW4RXr+MHFSexPtUSAfZMX3HfO70PdDWUxIt0koDZw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3504.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(71200400001)(186003)(26005)(6506007)(76116006)(7696005)(9686003)(110136005)(52536014)(53546011)(8936002)(5660300002)(33656002)(2906002)(66476007)(64756008)(66446008)(83380400001)(122000001)(8676002)(508600001)(38100700002)(107886003)(55016003)(54906003)(316002)(4326008)(38070700005)(66946007)(66556008)(86362001)(82960400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?yMlxcZqcaNZX1kzRLev/uh9OeBRYr3grmkzaHe9bFQRAmcJcICwuP0Pam8z4?= =?us-ascii?Q?t/5pPc189ixMUXrVkI8y4BmdKPnOnhfhGKg6mG3DXeiCbqnV6SZwpYvoXBkG?= =?us-ascii?Q?cC2q7VzOvXuNZrKqRrqGUUdOmEMvUEf3DHURdaiwy2WnsGyjX1PZkPmMMCTu?= =?us-ascii?Q?FJBUTXnCNoR2pckfiEfErk64cuBiNi6AvGG9gYStdI7umvIk6m/ljPO8Uxdv?= =?us-ascii?Q?jKU10OX4N7dPcVWJ4FuuYk1yqBF6hGkFgluMReG1Uudszmv5qaZRcrcBln+W?= =?us-ascii?Q?xBqio9P5BxXyp8oL4vmu29/rpVWWl/iVpltbk9NlBqEBBC6UgqxKsCa4XcRA?= =?us-ascii?Q?72iJw1EWfUAwGdHkIZr98sh/4QTY2mvx96nPC1OkpPCIDQ3Ts24ZaVUpKkEB?= =?us-ascii?Q?K9CrIoNIdYNAhqJL6Q6bAN0KcL6zCnxV87lOqzmb6i3S2JOn2xH4QpuJDCAI?= =?us-ascii?Q?RIvXvmllq4sSegeCd/6Jv8Nke08yEaA5s4tG6IK/ieAyZ7Ko+AGy09EVZJKH?= =?us-ascii?Q?rQmJfDBiK6+Qn6/VjYCiwT/D/LV2CYg8SZHIpvV7ZPBdBe4mMns13CRuoKhw?= =?us-ascii?Q?5tdtKc6ufxrmPY+z9ohOS5fY0EGZ2w6w6QH5S6GoURJwrmHXcFntbpqNIuya?= =?us-ascii?Q?07vHyNPk3othh40bZ8AtvE40jTP5ukXPNsLJF6diByW7URYNLquQkBUEFMAX?= =?us-ascii?Q?7eM4FVVKTzYY+BkbC0HFhhfvRNyvHcmQZ5c/gdAiHPO2Q/nRguSF+K4HPNzJ?= =?us-ascii?Q?5bOs1dyTl1RHD4wd7SdQa/Lx63j3tzOoAn3n8PuvcV4/3LLH7EtzuK4mwwz+?= =?us-ascii?Q?LdN5yIWie3jpRO2pvq65vQHQkrj+8AsjTP6kei1uhK3LUXg59wWQAbLBce5R?= =?us-ascii?Q?dG4YRtHd49VefA08yV8aUmqd6+tpzGdxr1PZZLBMXvv+PgunfpXyjXVYNst+?= =?us-ascii?Q?CfuAwgN2zrVfsDn+syjcCBpKkfuhZhhoYI7RvrTQzCNgyeSUBBQqFbNpsHUD?= =?us-ascii?Q?joVbAZEILepIA1d+TCh/QCPAj5MfWl6E7mLkrhTbg7pIU5ahJxbSIGmA1oY1?= =?us-ascii?Q?LNiGto0NEmpFUncMbL8NR/iAdZ4HZzBQSNRGW9zcaxrpjs1j5iToLu+gqZ68?= =?us-ascii?Q?wzfBW0Xpno0BjMsDS/Y1VPj/aTG0blSY9rjUvv1PVXFPMB4Z0412w5efYEyV?= =?us-ascii?Q?x4aZSg3sURvW8IuL+4y7k6aHyycPREGdnvIA8hVIGjYpFqC8Vnx5EO9hplCh?= =?us-ascii?Q?kGLySz+EhMcHmbtMsk/Lk4UBSMs1gsFNtVuWmbzd6pYZNHGCeTVHIv9O2LYh?= =?us-ascii?Q?crQ6u2WBUZNY5v6qZ9NYfWyL6M0bIicqfakDKEXSWhO3jmW9KPsj0ftIlDsG?= =?us-ascii?Q?puiyorGIszhCJSel0wVLOpDO9b3vp0alWfHouMae0gwihtOwDKd6/dIIXIqO?= =?us-ascii?Q?Oy1T8+G+CmI+IHZeEe5RPwCtWDoS1qQ690qEspIYfi/3CEwRfSEFPgA+740C?= =?us-ascii?Q?yHQHbYIb4nMCE+3AW6DrEVw8ljw63HMt/YdlyX+ejzvFfurnJU+1stFge4vA?= =?us-ascii?Q?BSrcL6hoVp6CS9oAcDFBAZtjUeUQDDgNhojsDhQm7uq44zOed3BVH3qwrXPJ?= =?us-ascii?Q?1qgZ+7xH0WbP8G0IF+ymCdHPGhI6RrviLqOY5iwkWMNqxyvBemWeTXGgNipv?= =?us-ascii?Q?cPpsenkjkw8WBCdKn+bE+pNQttxxZ7JLWh8DK5d9HDG3wCRQ9beFwnZ3Eb+S?= =?us-ascii?Q?TlG1UEcByg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3504.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d678d795-b3ae-4d50-22e8-08da22d51520 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Apr 2022 13:53:00.3527 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sEL687kLvUMNiU68TjbLjt9frlqjCJTo5rFAiHrqm7MYxTzRkjUQCbUTnXPaM2pzxZ5cwiGpxaFOE3V+NGdRbA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1741 X-OriginatorOrg: intel.com 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 Hi Andy, > -----Original Message----- > From: Pei, Andy > Sent: Monday, March 28, 2022 3:17 PM > To: dev@dpdk.org > Cc: Xia, Chenbo ; maxime.coquelin@redhat.com; Cao, > Gang ; Liu, Changpeng > Subject: [PATCH v5 03/16] vhost: add support for VHOST_USER_GET_CONFIG an= d > VHOST_USER_SET_CONFIG Let's make the title a bit short... ./devtools/check-git-log.sh will help you find other similar errors for oth= er patches. >=20 > Add support for VHOST_USER_GET_CONFIG and VHOST_USER_SET_CONFIG. > VHOST_USER_GET_CONFIG and VHOST_USER_SET_CONFIG message is only > supported by virtio blk VDPA device. >=20 > Signed-off-by: Andy Pei > --- > lib/vhost/vhost_user.c | 50 > ++++++++++++++++++++++++++++++++++++++++++++++++++ > lib/vhost/vhost_user.h | 15 +++++++++++++++ > 2 files changed, 65 insertions(+) >=20 > diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c > index 1d39067..55e8bd0 100644 > --- a/lib/vhost/vhost_user.c > +++ b/lib/vhost/vhost_user.c > @@ -80,6 +80,8 @@ > [VHOST_USER_NET_SET_MTU] =3D "VHOST_USER_NET_SET_MTU", > [VHOST_USER_SET_SLAVE_REQ_FD] =3D "VHOST_USER_SET_SLAVE_REQ_FD", > [VHOST_USER_IOTLB_MSG] =3D "VHOST_USER_IOTLB_MSG", > + [VHOST_USER_GET_CONFIG] =3D "VHOST_USER_GET_CONFIG", > + [VHOST_USER_SET_CONFIG] =3D "VHOST_USER_SET_CONFIG", > [VHOST_USER_CRYPTO_CREATE_SESS] =3D "VHOST_USER_CRYPTO_CREATE_SESS", > [VHOST_USER_CRYPTO_CLOSE_SESS] =3D "VHOST_USER_CRYPTO_CLOSE_SESS", > [VHOST_USER_POSTCOPY_ADVISE] =3D "VHOST_USER_POSTCOPY_ADVISE", > @@ -2542,6 +2544,52 @@ static int is_vring_iotlb(struct virtio_net *dev, > } >=20 > static int > +vhost_user_get_config(struct virtio_net **pdev, > + struct vhu_msg_context *ctx, > + int main_fd __rte_unused) > +{ > + struct virtio_net *dev =3D *pdev; > + struct rte_vdpa_device *vdpa_dev =3D dev->vdpa_dev; > + int ret =3D 0; > + > + if (vdpa_dev->ops->get_config) { > + ret =3D vdpa_dev->ops->get_config(dev->vid, > + ctx->msg.payload.cfg.region, > + ctx->msg.payload.cfg.size); > + if (ret !=3D 0) { > + ctx->msg.size =3D 0; > + VHOST_LOG_CONFIG(ERR, "get_config() return error!\n"); > + } > + } else { > + VHOST_LOG_CONFIG(ERR, "get_config() not supported!\n"); > + } > + > + return RTE_VHOST_MSG_RESULT_REPLY; > +} > + > +static int > +vhost_user_set_config(struct virtio_net **pdev, > + struct vhu_msg_context *ctx, > + int main_fd __rte_unused) > +{ > + struct virtio_net *dev =3D *pdev; > + struct rte_vdpa_device *vdpa_dev =3D dev->vdpa_dev; > + int ret =3D 0; > + > + if (vdpa_dev->ops->set_config) { > + ret =3D vdpa_dev->ops->set_config(dev->vid, > + ctx->msg.payload.cfg.region, > + ctx->msg.payload.cfg.offset, > + ctx->msg.payload.cfg.size, > + ctx->msg.payload.cfg.flags); > + } else { > + VHOST_LOG_CONFIG(ERR, "set_config() not supported!\n"); > + } > + > + return ret =3D=3D 0 ? RTE_VHOST_MSG_RESULT_OK : RTE_VHOST_MSG_RESULT_ER= R; I think when set_config fails in vdpa driver, it should not break message h= andler by returning RESULT_ERR here. All error log above, please print dev->ifname too, which will be user-frien= dly. > +} > + > +static int > vhost_user_iotlb_msg(struct virtio_net **pdev, > struct vhu_msg_context *ctx, > int main_fd __rte_unused) > @@ -2782,6 +2830,8 @@ typedef int (*vhost_message_handler_t)(struct > virtio_net **pdev, > [VHOST_USER_NET_SET_MTU] =3D vhost_user_net_set_mtu, > [VHOST_USER_SET_SLAVE_REQ_FD] =3D vhost_user_set_req_fd, > [VHOST_USER_IOTLB_MSG] =3D vhost_user_iotlb_msg, > + [VHOST_USER_GET_CONFIG] =3D vhost_user_get_config, > + [VHOST_USER_SET_CONFIG] =3D vhost_user_set_config, > [VHOST_USER_POSTCOPY_ADVISE] =3D vhost_user_set_postcopy_advise, > [VHOST_USER_POSTCOPY_LISTEN] =3D vhost_user_set_postcopy_listen, > [VHOST_USER_POSTCOPY_END] =3D vhost_user_postcopy_end, > diff --git a/lib/vhost/vhost_user.h b/lib/vhost/vhost_user.h > index c946cc2..d3f014e 100644 > --- a/lib/vhost/vhost_user.h > +++ b/lib/vhost/vhost_user.h > @@ -50,6 +50,8 @@ > VHOST_USER_NET_SET_MTU =3D 20, > VHOST_USER_SET_SLAVE_REQ_FD =3D 21, > VHOST_USER_IOTLB_MSG =3D 22, > + VHOST_USER_GET_CONFIG =3D 24, > + VHOST_USER_SET_CONFIG =3D 25, > VHOST_USER_CRYPTO_CREATE_SESS =3D 26, > VHOST_USER_CRYPTO_CLOSE_SESS =3D 27, > VHOST_USER_POSTCOPY_ADVISE =3D 28, > @@ -125,6 +127,18 @@ > uint16_t queue_size; > } VhostUserInflight; >=20 > +#ifndef VHOST_USER_MAX_CONFIG_SIZE > +#define VHOST_USER_MAX_CONFIG_SIZE 256 > +#endif For this config size, maybe '+#define VHOST_USER_MAX_CONFIG_SIZE 256' is en= ough? > + > +/** Get/set config msg payload */ > +struct vhost_user_config { > + uint32_t offset; > + uint32_t size; > + uint32_t flags; > + uint8_t region[VHOST_USER_MAX_CONFIG_SIZE]; > +}; Since the max size is defined, in the handler, we should check the size in = the msg handler. Thanks, Chenbo > + > typedef struct VhostUserMsg { > union { > uint32_t master; /* a VhostUserRequest value */ > @@ -148,6 +162,7 @@ > VhostUserCryptoSessionParam crypto_session; > VhostUserVringArea area; > VhostUserInflight inflight; > + struct vhost_user_config cfg; > } payload; > /* Nothing should be added after the payload */ > } __rte_packed VhostUserMsg; > -- > 1.8.3.1