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 05AB4A00C5; Mon, 24 Oct 2022 10:54:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9C6EC40696; Mon, 24 Oct 2022 10:53:59 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id ABAA6400D6 for ; Mon, 24 Oct 2022 10:53: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=1666601637; x=1698137637; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=RtOSjlSNzEvnxtEiDBmJn1jQMwaAA5tOTJEy1jyC+OM=; b=BiteJluBSTuvQHmuaEvRQRxvw7d+DmA51onlYQ4J15jNHwmKlx1mj/mp mvLbd9vX8kNeHhYx7wU31znsZAkpzQ0JMacfC3+IWWH7x2KsCIc+5MgcD S2d4VhrvhwGtinSCPPEpK53BWSpsYSijqLirfQCQBMF1HqSzmoHBSEAWb v4X9MyjDP5FJIPHqUS5LXuDKsj8LA8hhsdPbFH+F+biGxSL4EOoW37gbn BbhRMQ1GoPklJZsfVoY250Vrwec/jzShdLpytr2Z5rAs4jP6vCXf9CF3H KYEzc4ZtPcYLmc0liLbuKyjGWk3C0+HtUdokLPFbi3yUMHAmLgQNLxVSf w==; X-IronPort-AV: E=McAfee;i="6500,9779,10509"; a="290671951" X-IronPort-AV: E=Sophos;i="5.95,207,1661842800"; d="scan'208";a="290671951" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2022 01:53:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10509"; a="662369806" X-IronPort-AV: E=Sophos;i="5.95,207,1661842800"; d="scan'208";a="662369806" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga008.jf.intel.com with ESMTP; 24 Oct 2022 01:53:56 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 24 Oct 2022 01:53:56 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Mon, 24 Oct 2022 01:53:56 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.177) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Mon, 24 Oct 2022 01:53:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PEXVwJPkS2cICl/D5+4qC619VVH3n1trDWZEk+c44EPryJf8yPrtVockhRPvbFoUE1KwNbIO89J2R4i5WC+sHAjWr1nFoqWmNZlUq/6i1GNLH7LDXkhG7eu2xFD3f0GNNPJHoW3dnjEM4B74TTmAJMgCA+KOh6t2HiC0gfY/GGfwoTEhFfH1iPwbGYOshr72fGNBi/JbeubQimvs5pWTomdo8SmpdN6t5RW1/yrfAEJMAMBNBFvplLg1tu874waukth407GPphvjftiTrpxVNDPhvt8sSgJxxrkDyeAYwGNBPmVy1XDmdTR9TktnDQo9wj4IDFH4IW3opycHRrSivg== 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=onCYfQkYyofs3GgZN7amKxawHGB95n8hrtPz6wZYFD0=; b=Kj9H6arfVwHWL2syNuynxn6O4Q8W5reNheItXUMYSUMWIYuPUTiFIVxQS7wXPuyuWZUzQeULuBZnauzA1boDfUueZ1ZMzHaiCAj297GfBJzcm9xyCvNxgsaxc7pagy4/mW9HVPnJ8270ijpqdU0O7S8CFl24hlqUiftdWmDNpvycsuJlZsSmyMqT+dZDcx2paZAQFgqZkHiYNFz1A4VAOmHViz36ZSwiXl+BlnTAqERgy7s/SAuLRZVcxWwBYbBRAvF5Qe4qvi6Gt0F/U+nBiIHo4lX4Ky/qN1MExkfvkM0Frpjexzc/MkBTrBEp5ZkFRHgmhFBI5v7Jgo5M54Vg/w== 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 BL1PR11MB5555.namprd11.prod.outlook.com (2603:10b6:208:317::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.35; Mon, 24 Oct 2022 08:53:54 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::1a91:6a56:1250:ef0e]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::1a91:6a56:1250:ef0e%7]) with mapi id 15.20.5746.023; Mon, 24 Oct 2022 08:53:54 +0000 From: "Xia, Chenbo" To: Maxime Coquelin , "dev@dpdk.org" CC: "david.marchand@redhat.com" Subject: RE: [PATCH] vhost: promote per-queue stats API to stable Thread-Topic: [PATCH] vhost: promote per-queue stats API to stable Thread-Index: AQHY3L5UU6IF9f2vIEmw4ahm0pD8W64dUpkw Date: Mon, 24 Oct 2022 08:53:54 +0000 Message-ID: References: <20221010153751.58951-1-maxime.coquelin@redhat.com> In-Reply-To: <20221010153751.58951-1-maxime.coquelin@redhat.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-traffictypediagnostic: SN6PR11MB3504:EE_|BL1PR11MB5555:EE_ x-ms-office365-filtering-correlation-id: c6378b37-8133-472a-bb9f-08dab59d47c2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2Qytn1l1K89p15raS4AyuFWyWtCTATfAlKT4Y14j3JT+ePFMaqaw+O72D58rup+eYEFLxaGkgIKwbzEyjGIl2Nz/w7zSSaa2kcKGO2D7t4vHSaMyAVRhlVIlIjX3eLtlKGv7fHTwzodZcqrzn2AVVSaZSC2Dbl/syZ5rS4myb1SYCo5IELvEdC7y54+5/xArstpOZV3aj1wZpRghqN4PDLbaXjTCF2RHJzBNNFr4pQbZwSrRKIzoVOGMCx8JcZncATYZR+wAuvQNcFQMLt3mtCjkjD0k/W1yzOSpvd/FzL6x1dey+0ZThO4PPDGSdk/aTPutf3Xwsxmhl4JUajDE5N19oQKyS4EnsmPs579mRDyUaGOOO5PLikjB++vCJgKm2oCohqZsOpByYd8lJFGEk8djAbru9ki5lq259ZeOulZTm6/JkEl+J/GFonqfBfA4sE0o1y8Oil4M6psa0iqSu0Q9CYdPLIlJsui2hSVB1dRG0l2VXvTHgM9RsIO4c5lhOo1rv+rvngJIYwepIWHa58qon/yzqJ/ne+oDyDvnAan7dz0HEUhTahaqLAKhXp60lA3NtFmCVONwLZkvKrOJQCpCPv37G35VQ7iQVshfhD0shaCyDnpKBraifKxhV42l4MFkDeEleqVOdArtE2/iNU0pJdGfNitLQDPd6wdw0/ZVHivgIQmFDAvk776oH9gOEUx2RG/ZqfQ02NyyiREJ2qBQBgYoYFpfJqdfUhGHvhxJDOu7ZMzu031+21rgDbb/vFxjhdbXD+rxqBJ4NG7qKoJVv9zMAsEeeHRYLCD6a6I= 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:(13230022)(366004)(396003)(136003)(376002)(346002)(39860400002)(451199015)(33656002)(9686003)(7696005)(2906002)(186003)(316002)(83380400001)(86362001)(122000001)(82960400001)(38070700005)(38100700002)(8676002)(71200400001)(55016003)(110136005)(66556008)(4326008)(66476007)(66946007)(41300700001)(5660300002)(66446008)(64756008)(52536014)(8936002)(966005)(76116006)(53546011)(478600001)(26005)(6506007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HR/R7YDVSVCamnrzbMdmNDFm7K71vUVhYJkVlDPWgLSTVAyejE5ZopWluYDv?= =?us-ascii?Q?R4MW2Cd9ToLKZPv3ScUsf7Uf+7I6udFP0TK9bSIhwO7IhVGGzZvpf4qyNS0f?= =?us-ascii?Q?5wXgsw4CAAPiyzXdJubpPGHH1vOr4KFlqwVu4bGmL4ywj+GflBiDpl9mtwT5?= =?us-ascii?Q?z/gc8PGYAgg0IlNQfuPFqr5TYXAvAIYHLITfrJeqwNFTfZec6WO+UYThe3/H?= =?us-ascii?Q?tITJJG1rN8ZgWwdCLjK7fAKmt26n9jJmMraxWanhmB9hjR0lX043iovE/EhK?= =?us-ascii?Q?diRuBLBtuqZ6mQ62tqg4nTeDloZlu0QEGHbzGdaHCXU6YTiMKD3YHCP5j9ZV?= =?us-ascii?Q?YtgpHqEFuF66hjG4lSzJrR98MnJr0pnYJejZRkwt54oSfoEfSDdtZYs+Ewp+?= =?us-ascii?Q?x2TtNup5sYHGTjAEpKjGfvGFOc8Fh5JAqIJZ99lDnjK0jZkxxG3lFLM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T++pJczwQeIh+sNkSXEL2rRVuDhUtYrONreM?= =?us-ascii?Q?hIT8Nv1YCL1UxRK/heEuzlCTymmV+T8vQouU4ZVn2vna6JNU5rxYvra+YZyD?= =?us-ascii?Q?hNJihlKghsJqXqZsYSqpKRktUXJ8rwbtOgRQERj0FGPAU2BVSKSkMFvgkRDs?= =?us-ascii?Q?CI/1w8QwBIh1eezyXfsGKjdrP/WbTTWFIH0x2zebp+NVciA0ZT2U8OXz03rx?= =?us-ascii?Q?Gs7//YN8si2Vn0PmMMmpaFgCVyHgGQ7b4QhWQPR8?= 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: c6378b37-8133-472a-bb9f-08dab59d47c2 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2022 08:53:54.4158 (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: pj4uj5Tj/jP3M1o7WYpwPQqQ4mq3DQ11SYYK1rZIicNITMMKhJtovBnANWctfbYf1WTiq8URp3/WVLHEE5EJ4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5555 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: Maxime Coquelin > Sent: Monday, October 10, 2022 11:38 PM > To: dev@dpdk.org; Xia, Chenbo ; > david.marchand@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH] vhost: promote per-queue stats API to stable >=20 > This patch promotes the per-queue stats API to stable. > The API has been used by the Vhost PMD since v22.07, and > David Marchand posted a patch to make use of it in next > OVS release[0]. >=20 > [0]: > http://patchwork.ozlabs.org/project/openvswitch/patch/20221007111613.1695= 5 > 24-4-david.marchand@redhat.com/ >=20 > Signed-off-by: Maxime Coquelin > --- > doc/guides/rel_notes/release_22_11.rst | 4 ++++ > lib/vhost/rte_vhost.h | 3 --- > lib/vhost/version.map | 6 +++--- > 3 files changed, 7 insertions(+), 6 deletions(-) >=20 > diff --git a/doc/guides/rel_notes/release_22_11.rst > b/doc/guides/rel_notes/release_22_11.rst > index 37bd392f34..d5d3eeae24 100644 > --- a/doc/guides/rel_notes/release_22_11.rst > +++ b/doc/guides/rel_notes/release_22_11.rst > @@ -443,6 +443,10 @@ API Changes >=20 > * raw/ifgpa: The function ``rte_pmd_ifpga_get_pci_bus`` has been removed= . >=20 > +* vhost: Promoted ``rte_vhost_vring_stats_get()``, > + ``rte_vhost_vring_stats_get_names()`` and > ``rte_vhost_vring_stats_reset()`` > + from experimental to stable. > + >=20 > ABI Changes > ----------- > diff --git a/lib/vhost/rte_vhost.h b/lib/vhost/rte_vhost.h > index bb7d86a432..59c98a0afb 100644 > --- a/lib/vhost/rte_vhost.h > +++ b/lib/vhost/rte_vhost.h > @@ -1075,7 +1075,6 @@ rte_vhost_slave_config_change(int vid, bool > need_reply); > * - Failure if lower than 0. The device ID or queue ID is invalid or > + statistics collection is not enabled. > */ > -__rte_experimental > int > rte_vhost_vring_stats_get_names(int vid, uint16_t queue_id, > struct rte_vhost_stat_name *name, unsigned int size); > @@ -1103,7 +1102,6 @@ rte_vhost_vring_stats_get_names(int vid, uint16_t > queue_id, > * - Failure if lower than 0. The device ID or queue ID is invalid, or > * statistics collection is not enabled. > */ > -__rte_experimental > int > rte_vhost_vring_stats_get(int vid, uint16_t queue_id, > struct rte_vhost_stat *stats, unsigned int n); > @@ -1120,7 +1118,6 @@ rte_vhost_vring_stats_get(int vid, uint16_t queue_i= d, > * - Failure if lower than 0. The device ID or queue ID is invalid, or > * statistics collection is not enabled. > */ > -__rte_experimental > int > rte_vhost_vring_stats_reset(int vid, uint16_t queue_id); >=20 > diff --git a/lib/vhost/version.map b/lib/vhost/version.map > index 7a00b65740..8c5e8aa8d3 100644 > --- a/lib/vhost/version.map > +++ b/lib/vhost/version.map > @@ -57,6 +57,9 @@ DPDK_23 { > rte_vhost_set_vring_base; > rte_vhost_va_from_guest_pa; > rte_vhost_vring_call; > + rte_vhost_vring_stats_get; > + rte_vhost_vring_stats_get_names; > + rte_vhost_vring_stats_reset; >=20 > local: *; > }; > @@ -88,9 +91,6 @@ EXPERIMENTAL { >=20 > # added in 22.07 > rte_vhost_async_get_inflight_thread_unsafe; > - rte_vhost_vring_stats_get_names; > - rte_vhost_vring_stats_get; > - rte_vhost_vring_stats_reset; > rte_vhost_async_try_dequeue_burst; > rte_vhost_driver_get_vdpa_dev_type; > rte_vhost_clear_queue; > -- > 2.37.3 Reviewed-by: Chenbo Xia