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 D2AEEA04FD; Mon, 23 May 2022 06:49:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BBC2440156; Mon, 23 May 2022 06:49:08 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id BFCCA4014F for ; Mon, 23 May 2022 06:49:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653281347; x=1684817347; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=bMRuqA/4TQOg4fai/P7fJNtfCPh6euNs0jPPUvECyB0=; b=J4L2gnZ3pqQQVH100cp6PUL4C2HI96OOeSjuTVaDTb/r6TZGdu41pLXo aWb09JtvZsH4N+SlF6I1n058mpTtAdgVKZ6JUyPa2U1XaHXLog70Eq/bR vw8yyDSZ6OeJBsSY6E6/uirZiHas48twcIEp/zIym1xmuw4oC1aqq9q6K EfanG+Pv+5Zy6WNR+F9ki6NfZTjWCjpWyQEaO2l0QYi8abBKMM/x69WpC QQVmGmBmdmx1HlKHrMahINAZJG4qdGRtghia5mzNNtb2kIuY7MGw4f4y7 O1ka54Hl4J2OaNp6juzX0MTaFhXRBrgBaQXxaLcTwkxBv8dQE/KJf1HoV g==; X-IronPort-AV: E=McAfee;i="6400,9594,10355"; a="271917110" X-IronPort-AV: E=Sophos;i="5.91,245,1647327600"; d="scan'208";a="271917110" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2022 21:49:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,245,1647327600"; d="scan'208";a="577203419" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga007.fm.intel.com with ESMTP; 22 May 2022 21:49:04 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Sun, 22 May 2022 21:49:04 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Sun, 22 May 2022 21:49:04 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.176) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Sun, 22 May 2022 21:49:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BEZOXrrT3yW0OGOWe9a60WdZY/A7V3zvCFKevzkzRyunCsUMCeScW0mCiptv2oB2IlFPqA9757rEuRipRNIsEThIW/H+r1gHJfUMt0nRv5XBRLgcvwlAVpb9ZFV2ur8ioY6Fi1y447fW77fj2p25OBZybrXgCGChhH2VoQ+JB1MoLl6qYIZ9J1MgR5sqgMugjeBJHPNaZ981T3LB1igBt/GHeHefBanye7cWWnFtYN4JmtTF+5nkz/ixCOHOFjWPS/OyKbhdYJqw4Fj8gif5kIjhc/yaGXW6VS5bzoX7TzL4ZuvXCvagNGkzAek2UpXePvC9NQmzha/i1jqMZY4XZw== 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=AFjmPBls1+CV73/gIZeoHGRnqJY/S79pUkJAK5WxXAc=; b=Uma5zxnBYYv9bmZNMERmt1jNs6gibMKOuEn2y/uosyCZE+EBZTG03nLhfkKoOj0qTbKahfSy20mvrCa7Q2Rr1IWY1NAo5rEHEPOLvhYCL6Mpp3rpJYinf3+quVquPkHd74dAGCXVKOuh6ynSce+UCqPz9yzaIsfQ7LWzhmkh/1TCje4pT0zk+VJFSrKIYT65q2fN8HXWT8pW5dqv4Nd6f5PkNHwZaTM/zxlt0HI2x51maTB9Un3+G4qqg3oRBBJGgTCOCch8vJJ0GSkoFEPExeDHQCiqKoBoNhjG/7qGs15G5PivCHvc+0UVespNtzT5pdt5kKGOGq6oEWJd5Qnw6g== 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 DM5PR11MB1739.namprd11.prod.outlook.com (2603:10b6:3:111::22) by IA1PR11MB6538.namprd11.prod.outlook.com (2603:10b6:208:3a2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.14; Mon, 23 May 2022 04:49:02 +0000 Received: from DM5PR11MB1739.namprd11.prod.outlook.com ([fe80::8c3b:8a54:d186:b555]) by DM5PR11MB1739.namprd11.prod.outlook.com ([fe80::8c3b:8a54:d186:b555%11]) with mapi id 15.20.5273.022; Mon, 23 May 2022 04:49:02 +0000 From: "Pei, Andy" To: "Xia, Chenbo" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Cao, Gang" , "Liu, Changpeng" , "Xu, Rosen" , "Xiao, QimaiX" Subject: RE: [PATCH v8 03/13] vhost: add vhost msg support for get/set config Thread-Topic: [PATCH v8 03/13] vhost: add vhost msg support for get/set config Thread-Index: AQHYardUBrKmsC7cGUuDyqmdhP41eK0r26MggAAPpKA= Date: Mon, 23 May 2022 04:49:02 +0000 Message-ID: References: <1643093258-47258-2-git-send-email-andy.pei@intel.com> <1652876035-70513-1-git-send-email-andy.pei@intel.com> <1652876035-70513-4-git-send-email-andy.pei@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.401.20 dlp-reaction: no-action 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: 0cd11978-39ba-4428-e9b1-08da3c778f1c x-ms-traffictypediagnostic: IA1PR11MB6538:EE_ 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: g3yupUEdoxaR7rjNFB8b5xzyT1o+9dHwyjpO/Sr+Bl8LU+yhXOvETxd/VpIlCKyBzbKyeamYhj0h6EPF6a+7hwV4R+z3GHm6bDhE+TwzTbg28do8LuumUmyzL8J4zDPXbyvihQbKEEzULTBovQVUe7Y3WMFg/0UF3XoPtrfJ/yrBy352XF1QiajQEXVaJkHN6ADSQRmjAeZU/kRvf16bHXe3ZUcPw1JkOzfyrVNiDYenhdKjgUJkW5Y8KyUcwYMx+MLReXobcMrOUf35wFO780jRClQQ4Kf3J7bQtq3f4UbY/9EhUXWCgFyqDog/9LDBzKVhenWk4GLxzYH5fxJlIFEZPRW9qA8iwQ0j49qATdfWOLsYAu6aziQ0IbUP4Cub+SkGKSCm50Ukb4hyTX32DLMj2akByjUi1mMUXFYrdrpWwS8avm75XKYyb/yNvMAwUf3Vs9PXOol03BW7rwtVBmni5v8upAJtxCdA4eHPlMmM/42bZvqZbN7GVAc4vIfGo0hncfGcHL9INGaWd6hV8NyUJCaqq99NjX4wyyQqrnyHDqZHlHQgpf2250zZLCZDssA1SZcjgyzVMXSB10Clx/50G9ZjMuieXVDQ1kc5wAuITm9K2IJ+meplxoTMsgfytoLa626z1rE1AShM5UmR3MJcJm2H1OR9oxrIEthFcIrPnbnjGLk5Do8blolH+nNuH1HPE+Oflv6ntFBhzBdjRg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR11MB1739.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(53546011)(26005)(8676002)(6506007)(2906002)(86362001)(110136005)(9686003)(38070700005)(54906003)(5660300002)(64756008)(186003)(66476007)(122000001)(66946007)(66556008)(66446008)(4326008)(33656002)(316002)(38100700002)(83380400001)(76116006)(71200400001)(55016003)(52536014)(107886003)(508600001)(7696005)(8936002)(82960400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?rOI3/0wTOSVIUBrfr54YyYk5FdN/Ij8iYYpUnfmIaTtsSkS/MNtR3NWMTJ4W?= =?us-ascii?Q?zcabtbZs3CE+ECS6AnlzeoHurgsb95faBUUbEBM2ME2v6kTb+sJVNDreGm/0?= =?us-ascii?Q?t287BfdzzWZ7Lf+7jk4T3D+WLdiumCRNcX/NaqMbMov4NqStIgBZ2r1eTXRT?= =?us-ascii?Q?DsTIqmVsEGRvs86c2hwLXGkm055druPdiPwQ1OynsK7aNvUWnEHvbbYS3Z/Y?= =?us-ascii?Q?6YKVf27VmaMJp0pvVN6gq8g4oyC/CtCothM24+DNxCRjwGHaFF1J77od3knV?= =?us-ascii?Q?Y3vouT8PhgkgO7WjAcfZRqX25ok8rcvlsCAUFoUunMxoXw43lqqyk21hphNW?= =?us-ascii?Q?nNYrWVLnIhDXdctqe9OmJx6IUEQZS6gk+mQ+fMA/QHIgfBmwvLhibJ/fs/68?= =?us-ascii?Q?PAiKLh8zgexCqpbPkAAhTcd1nifkL+R33Kh4bgdCfwLV8rVqxfxSbhYjhJC5?= =?us-ascii?Q?L8xaw+r43hFzm7b/C6LgWOWDxap0kv7+eLzLOFV1D8yjI2ApRnX7dsHqyIS6?= =?us-ascii?Q?FFHMSXicslNxF3GrnZTRr0264FEdtstN0BZ856tUWoaTAlpN9isjqV+j5ME1?= =?us-ascii?Q?jeYuyoKqiyE35WJ67kibq+Lp3vfaJ5MqUAEr+0QqIjlin4OSnQnhyBtyWQ/n?= =?us-ascii?Q?UkYOY9wcN9duKAvWXBXGiqMYZwGgu59+2sVSqvUu7cnnclo6pLivDXY4QIR6?= =?us-ascii?Q?G6XkhMSewgo8UlbGqV/kSKcsBVPzPyUdG2Cr8IKJdlPxDxNnChVvczFQPeQd?= =?us-ascii?Q?KzXzjI/SsBXjygsGW9zNfiowV7tadnKlG6h+1dJRzk3knc6ZNY2L/BSFDyyd?= =?us-ascii?Q?pOcKGNCkDnp6/HAz9yvUZywhb62rKUfQVKmZeZX/IPZbSWZqXde5vwDqBRY6?= =?us-ascii?Q?l+Yd6DUCGQEtZMnDd8MN7q50LxTmXNqQQmib/+R4ggjTDVokgKdB3kBvd9fK?= =?us-ascii?Q?10OC6g6sORo22OXkEcA5LPx4s3qbExynND8W6Vk80XmT9K3g1O23A+z32nmx?= =?us-ascii?Q?6GxheTuz0tIoJ6igCTTzZfH+CLocup0knkS3UiXKRWQzoA/yup75+wCAtgfV?= =?us-ascii?Q?m1okUAMi7eEU8iZcaQQUf46CC3nLpGw5AXJrZ0bjnBN++qEysywIQWjNAzAO?= =?us-ascii?Q?OnmLGkJAlG56CM7N743a+gmQTGKKdK6Qh+agYenPKxCiO/8wuEQKA0xOfmAv?= =?us-ascii?Q?mxkDvc9fOcYdCDaaq3maYEEJolKzC5BpvCXSuJCBpRA7QW6mmDasGByGAQ1r?= =?us-ascii?Q?Zyp7XVaYXqfxL/G+WvjmWzKMkHu74QOnW8joLGnyVF7CIl0IHeYyENfrP8zf?= =?us-ascii?Q?G7t5VcxlVtOxpWt5g1QmS19HK1Khpt84O6UkPWjdFWSz42z5JEyx/g2pls6J?= =?us-ascii?Q?bARMBSGXwLvZm1aTt5EOH9fVMqO2B3gUBH52xb+MlXjqXQD3Eo/1UD4Ki3qT?= =?us-ascii?Q?HyuA6r0ApSBtqMQZvNV+LjaY4jMicEpoxpqYNQsBIr83NTJlG+fUzrOkpjz6?= =?us-ascii?Q?jbEk88qAWCRN64hWW4M7wB/XntMQrbwmkcJmA504CknrsrsX2O9cb2AiIA9l?= =?us-ascii?Q?pCvvTz9jPMJfXoOXWNZKZ4bGDLQCVMUGLp4cM5AHTK+XCa4dz5apeDJOR/3M?= =?us-ascii?Q?pJSIGe63aVaBEav1FFprVt33BSw/R+/0FKTb6fV5fpByKaJCLQjRj3Q/sdi1?= =?us-ascii?Q?z5goP3Vef6qWZG/7GvatJKDX+PTz+fDXcSU+LTfWLm/W7WpqgqzJAgCeDq2y?= =?us-ascii?Q?rQs2zr9BUg=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: DM5PR11MB1739.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0cd11978-39ba-4428-e9b1-08da3c778f1c X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2022 04:49:02.5533 (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: /ScuokTQh+CkofE+XX1Df9hYHigc1Qt+j/JAWAF/2FivPKQV7Ohta/ui883oWRdtPSUxbvA+izn5ELiqx9fyCg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB6538 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 Chenbo, Thanks for your reply. I will check it in next version patch. > -----Original Message----- > From: Xia, Chenbo > Sent: Monday, May 23, 2022 11:55 AM > To: Pei, Andy ; dev@dpdk.org > Cc: maxime.coquelin@redhat.com; Cao, Gang ; Liu, > Changpeng ; Xu, Rosen ; > Xiao, QimaiX > Subject: RE: [PATCH v8 03/13] vhost: add vhost msg support for get/set > config >=20 > > -----Original Message----- > > From: Pei, Andy > > Sent: Wednesday, May 18, 2022 8:14 PM > > To: dev@dpdk.org > > Cc: Xia, Chenbo ; maxime.coquelin@redhat.com; > > Cao, Gang ; Liu, Changpeng > > ; Xu, Rosen ; Xiao, > > QimaiX > > Subject: [PATCH v8 03/13] vhost: add vhost msg support for get/set > > config > > > > 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. > > > > Signed-off-by: Andy Pei > > --- > > lib/vhost/vhost_user.c | 73 > > ++++++++++++++++++++++++++++++++++++++++++++++++++ > > lib/vhost/vhost_user.h | 13 +++++++++ > > 2 files changed, 86 insertions(+) > > > > diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c index > > 850848c..1dd1e25f 100644 > > --- a/lib/vhost/vhost_user.c > > +++ b/lib/vhost/vhost_user.c > > @@ -2468,6 +2468,77 @@ static int is_vring_iotlb(struct virtio_net > > *dev, } > > > > 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 (validate_msg_fds(dev, ctx, 0) !=3D 0) > > + return RTE_VHOST_MSG_RESULT_ERR; > > + > > + 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, > > + "(%s) get_config() return error!\n", > > + dev->ifname); > > + } > > + } else { > > + VHOST_LOG_CONFIG(ERR, "(%s) get_config() not > supported!\n", > > + dev->ifname); > > + } > > + > > + 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 (validate_msg_fds(dev, ctx, 0) !=3D 0) > > + return RTE_VHOST_MSG_RESULT_ERR; > > + > > + if (ctx->msg.payload.cfg.size > VHOST_USER_MAX_CONFIG_SIZE) { > > + VHOST_LOG_CONFIG(ERR, > > + "(%s) vhost_user_config size: %"PRIu32", should not > be > > larger than %d\n", > > + dev->ifname, ctx->msg.payload.cfg.size, > > + VHOST_USER_MAX_CONFIG_SIZE); > > + goto out; > > + } > > + > > + 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); > > + if (ret) > > + VHOST_LOG_CONFIG(ERR, > > + "(%s) set_config() return error!\n", > > + dev->ifname); > > + } else { > > + VHOST_LOG_CONFIG(ERR, "(%s) set_config() not > supported!\n", > > + dev->ifname); > > + } > > + > > + return RTE_VHOST_MSG_RESULT_OK; > > + > > +out: > > + return RTE_VHOST_MSG_RESULT_ERR; > > +} >=20 > I missed one thing in previous reviews: vdpa_dev pointer needed to be > checked (Not Null) in both set/get config. >=20 > Thanks, > Chenbo >=20 > > + > > +static int > > vhost_user_iotlb_msg(struct virtio_net **pdev, > > struct vhu_msg_context *ctx, > > int main_fd __rte_unused) > > @@ -2686,6 +2757,8 @@ static int is_vring_iotlb(struct virtio_net > > *dev, 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_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) > > \ > > VHOST_MESSAGE_HANDLER(VHOST_USER_POSTCOPY_ADVISE, > > vhost_user_set_postcopy_advise, false) \ > > VHOST_MESSAGE_HANDLER(VHOST_USER_POSTCOPY_LISTEN, > > vhost_user_set_postcopy_listen, false) \ > > VHOST_MESSAGE_HANDLER(VHOST_USER_POSTCOPY_END, > > vhost_user_postcopy_end, > > false) \ > > diff --git a/lib/vhost/vhost_user.h b/lib/vhost/vhost_user.h index > > ba1c5c7..c4d091e 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, > > @@ -123,6 +125,16 @@ > > uint16_t queue_size; > > } VhostUserInflight; > > > > +#define VHOST_USER_MAX_CONFIG_SIZE 256 > > + > > +/** 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]; > > +}; > > + > > typedef struct VhostUserMsg { > > union { > > uint32_t master; /* a VhostUserRequest value */ @@ -146,6 > +158,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