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 EC655A04FF; Tue, 24 May 2022 05:01:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DDCAD42685; Tue, 24 May 2022 05:01:59 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id C128F42684 for ; Tue, 24 May 2022 05:01:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653361317; x=1684897317; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=+lPAQ22i6G4Lei2FJkEQZhZTWB9euyIaCCcfuQgWd3o=; b=KC2z8zt7qy9Dpl3HDFv+CcRkt0/XTCQo66pBJ69mPOLlxrHG2tIX1HC7 LvWUyvnoIkASQpW50Mzc1K5Np0q9Ec/T4apHNXdVjSN7ouG1epnhVgbm3 ZQjOpaazjaGBLtL4+5NMKfGhhfPXGwPBT3FcPElLixk1kBYJAGrVPEyt7 xMbbPwnLHkhfNqRYNjWu0Ey0bYWam/4kyaG4lDNoXkCUu5Se/RVQrUduz FgXjfqGzHivkF17u1OfMn4IFGHBT7AWXs2AtS8rizQ7mQuRqk6eaU4CFR a0Y6G3CvMbBMExHLaTR605YO+zNRX/mdbv0k4l2SCIZqvmGvsocsQOv00 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="273529007" X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="273529007" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 20:01:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="663720766" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by FMSMGA003.fm.intel.com with ESMTP; 23 May 2022 20:01:55 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 23 May 2022 20:01:55 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Mon, 23 May 2022 20:01:55 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.43) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Mon, 23 May 2022 20:01:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kt8kP1gK7CFPq2MXyu1ukYK/MZ5O90e61czi1JkuAHtRIQn8mXbgzTBMThUxAELky1vs0r7gvcib2oJE9lvOoAPMLPJQszZ8Zp75iHMADGsfIobU3ia8Eeu2WwSLz86fDklUPEQCQzpD5fT+mjkD04INsM+O//1CaUQVZGEEK9t0BAcanyYMKRtNP1GbvVUYTy6hAFaqyncIPV4HtjB4aT6kLAFd4sWaMBSNAfPhADQTwcsc2C52ZcAl0Cf6kPo7i6ttd64g3JnJbhPWkTv8F9l/G0DRhGSQ6XNsE6gjdDMI/T803FU2n4UiGJFF5pebOMdGJpbKfMyDbmdVmJBZpg== 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=7pVZIjfk9REplh2YHsBDAstQJdeyezumDq94Mx6gnmg=; b=RMhfKnzNR8N290Xcc+LKS5AcGFDOu3WSvTrM2OsgPyVZl/cdfc//gOCG34dv9WAqwsINKWISjuq362abgS668NhUQY2jFIZyz6lbzefyO05nohB7jnk/KhoIkQLNVnXQ/NYfHcNBjcBpyOR6GMZu39pl3jvIoXjvk2K6sYBh64kfq89Jj6bPQUQkFppmbiiI45Xqx3R79fkrcBqvnpk6aDJI6KDzBOMXJ5psV/Qcpk/ne9TVUfXTlvLOJvsE6aPIlz/YiN2ER5+TL5boIZ6lEcsmVpZuQxZS0w2771DssryV8RRaZWrrozbEdB/R+hMBI0sNxqhKXJvAOB7Lqt6auA== 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 CH0PR11MB5267.namprd11.prod.outlook.com (2603:10b6:610:e2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.16; Tue, 24 May 2022 03:01:48 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::54e1:e802:17c8:93f]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::54e1:e802:17c8:93f%7]) with mapi id 15.20.5273.023; Tue, 24 May 2022 03:01:48 +0000 From: "Xia, Chenbo" To: "Pei, Andy" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Cao, Gang" , "Liu, Changpeng" , "Xu, Rosen" , "Xiao, QimaiX" Subject: RE: [PATCH v9 07/13] vhost: add API to get vDPA device type Thread-Topic: [PATCH v9 07/13] vhost: add API to get vDPA device type Thread-Index: AQHYbo8TtGS75fTAREG92fKpIAo2IK0tWAhQ Date: Tue, 24 May 2022 03:01:48 +0000 Message-ID: References: <1643093258-47258-2-git-send-email-andy.pei@intel.com> <1653298524-232138-1-git-send-email-andy.pei@intel.com> <1653298524-232138-8-git-send-email-andy.pei@intel.com> In-Reply-To: <1653298524-232138-8-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: 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: 6600130b-12d3-4809-41e4-08da3d31bea3 x-ms-traffictypediagnostic: CH0PR11MB5267: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: anRlXZQTat/KZB8Dt4Wf7K5BaaoOBQoXI7ay2JiwGB4IbktiqQhQyZf2W0oqyS7CINcT9uAbnW+Doj8Xc5ePy2P8NLiKhK255Wi4bv+Yy0sm8I/gnIASgn/vJAbp8Voxc44g1Mcvpluk0Y7i61Xz4dhCNKiZnGPSbQ+87qwCY2q7lyD8FU2rLSQ1orlAnZp33+9aMh8XH8dtCatpb0reTdKp9YMlZM0BVtmA8hLE5Vbz/Cgz7ouC31H300BUy89Cwajj1lE8wWhf+yL+etiFWlgQm+aijHtfbPPYDewpiClJ0Dr2uNb65hKaaOvoqMH652IliG1t9koMG9BqZmp/G/d9b89zNUiFcse73iDvR6XUiW2MUDdi3GmnY918kziQRqpnLscP5+V0he8/OIA6EfNab2Oxmg7WZes1CnoRedrEMCMOXDKASv8n5lu4bRgpXIL3VeNc3HYEIZ7epps4fjzBQYvysQCcNu8zaLgxYdG+Oz2Ptr3z2l3fLZAb9UilrbiyOxPWfY+EUQ9fqVfaMDSSy5XuGopKSsq24Lka73463CS8OKQKKV+BO4FK9c9Vcxv5eaJQI5gI3l2lDpIOft72cMFc8MzSQqzMYEp/2+iahQB12ZTdJzm7aaDxHaidZuJjLMJEqeTTpuCLy/KTQ27H7uwLEaAH1YygKGjD06fELWFv3wLwQ6hz3mjAvk0klN8UbkF+XsTYy3fpQ1rasQ== 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)(38070700005)(71200400001)(55016003)(122000001)(33656002)(82960400001)(52536014)(4744005)(5660300002)(8936002)(83380400001)(86362001)(7696005)(9686003)(26005)(53546011)(6506007)(508600001)(2906002)(4326008)(186003)(54906003)(316002)(8676002)(76116006)(110136005)(66556008)(64756008)(66946007)(66446008)(66476007)(107886003)(38100700002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?p+XJkhiZ1vXz5P9JHW2BGyuXYag0PXbJqWhWMSkI25m0jARpLkppZLq7bkPV?= =?us-ascii?Q?REB8EeV8qbBLQT0zI8cQCAtPsHwxX97ngU4YeWBSAKj4tX0dpQ4GnuhQm4YZ?= =?us-ascii?Q?S5OJaIGmb/hhWSeJhxtImdaDMW06bXVlTLMG/ePOguvZkmC6gaWBytX1/cJi?= =?us-ascii?Q?VxmfHZyM21hJ0+BNSRI6284AFyZ67+Vmc/BHcsLx7OUe1jbnRVZRADZ0czPD?= =?us-ascii?Q?2l9ds3/FCHqoZPSK2NPYtOqNMYFXp45k76bo2cer4dAaPnDdRWmE5zBjJOTt?= =?us-ascii?Q?ztbghYLUa2CmaUdpVs1qJ4ZrhB2LOTiTMFhEeKo/TDVcIAImHkGmtlSyjzQx?= =?us-ascii?Q?n+B85Osdv6QIFoLtK7+4b5nZ0eijoQ8k8oYI1l/4par6/c0B74YvRKsFsTZ9?= =?us-ascii?Q?f+b65VhNivdAzqlcRq08imgpV0W4ASpURMLnw5NJ8JcRWY1w7YSdyMf0/s2Y?= =?us-ascii?Q?JO+BARJ+gP/B1FpsyvyLNALU9WucERelROIXmJf8jazcLuTQcwpu7Azhsd87?= =?us-ascii?Q?zsH/entFTxzQBBI9ou18Pm2k922IF8Y3QQtytx6Jx0Ovqo3/svF5evlN0DZK?= =?us-ascii?Q?QysaFLhosAuSBwKptuGRtESRWJeEHhrkorrgJYL7Xv84mBJSmUIBxJI3xGFC?= =?us-ascii?Q?SKkDkcg8voWqnXbXiG9cpeaWE6WrK0JkveZcRkrKNPMRW5fweXun6O0Eaoc9?= =?us-ascii?Q?uuCUCLHQiDfpPru/EsO0Pl1ENZTjKQqOPknbjH53JhOZYSIMSOtXPaq5JIks?= =?us-ascii?Q?QuzupySXcz9yCLbwkTzduahFd23IAYUKy8V4bjEhzq6HaCz2z00flaxhuRP0?= =?us-ascii?Q?Yn+kmKqkNLdqunYbB3pMGmAw3ZurdwS4wVqlRyjcdF8k5/3mNttMgiMOUXl9?= =?us-ascii?Q?rztCXonGTYsAMY13fajfw26uUZSgdLA+Zz8MLK3jxEiD+s8XOhak9t5Lvzpt?= =?us-ascii?Q?erUgtIETLytasjYFSpucM3CXMXlwD/+wos3uRWzIXGU+fXEmewK5T0YGX4jq?= =?us-ascii?Q?5OCV07cRybCGR3QE/Psnd+H/8eO8CizUU4sa1o/lLAVkhT2eVB03iVfTp0qW?= =?us-ascii?Q?Ag7mNhPqnmWdauTRP1QHhtPiU3tsn5Cv8k6IP2nejNW7Kd9yNZ9Dl97+ql2/?= =?us-ascii?Q?M3vCEAYCmrA0UkX/I+eF4MmBnt76BuwmWMWl8TtkaRKIDNZEhq3eHDG0Hgac?= =?us-ascii?Q?tWAzB9gCy+xl06se+zmvj5Mqhlf7XtYlUP7izH4Ri5vWPe0FuJVOJQNYiq3Z?= =?us-ascii?Q?QatnB4Li6NOqZFnyDanemHV6htKALLx8xnmleg2sCbANesz4xBdWScPPurjv?= =?us-ascii?Q?QM9v5O6yQeg7YKytHTPJiK5fp3W4h6huZU9kZzL//uENqw+XmNJPBRdXyODs?= =?us-ascii?Q?n06I83+AuUMhv6ASoW3wG92CbCHnV3q3HejoKmQ2lrMmWOHuuPEBWrVrGF4X?= =?us-ascii?Q?/xvpIhO+gKINkh81EJDFc4mxnHtVf5XBX+mDLWphBEx7TzDgxxa8q3yfpMhP?= =?us-ascii?Q?US4emeSDGfJ2sIL8I+lpPvr9fbVEcSn1aKt6+Sh4RxeygRtvNWMy899JoWpb?= =?us-ascii?Q?SLqRJeqaDRdMtd7lyoiwqF6FmG4jpuWiKfs9X35qkW/50E0eMbQvXDrXHQj9?= =?us-ascii?Q?SSBuwwxdirXpRhwi+rsDoXaZehrlP1HtCUWcXlF+eGF8Cn67Qug7I9bAwFz4?= =?us-ascii?Q?7NOyq9kehsgu+L1VZbMjDvOMtoNEuevoyfA/BE9ClcnpkGYCrHyxVwGCexfN?= =?us-ascii?Q?foe0MyPZcg=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: 6600130b-12d3-4809-41e4-08da3d31bea3 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2022 03:01:48.6783 (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: J28HFzdCmOS3us8LW4xpbpJt7xgrAjRYQGGUynFFhEhBjat3r8/FJwDaP2dNJl8GBAcfmxKW/tRI/PrYau0wsg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR11MB5267 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 > -----Original Message----- > From: Pei, Andy > Sent: Monday, May 23, 2022 5:35 PM > To: dev@dpdk.org > Cc: Xia, Chenbo ; maxime.coquelin@redhat.com; Cao, > Gang ; Liu, Changpeng ; Xu, > Rosen ; Xiao, QimaiX > Subject: [PATCH v9 07/13] vhost: add API to get vDPA device type >=20 > Vhost backend of different devices have different features. > Add an API to get vDPA device type, net device or blk device > currently, so users can set different features for different > kinds of devices. >=20 > Signed-off-by: Andy Pei > --- > doc/guides/prog_guide/vhost_lib.rst | 5 ++++ > doc/guides/rel_notes/release_22_07.rst | 4 ++++ > lib/vhost/rte_vhost.h | 17 +++++++++++++ > lib/vhost/socket.c | 44 > ++++++++++++++++++++++++++++++++++ > lib/vhost/vdpa_driver.h | 3 +++ > lib/vhost/version.map | 1 + > 6 files changed, 74 insertions(+) Reviewed-by: Chenbo Xia