From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8DD94A0471 for ; Tue, 16 Jul 2019 21:25:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 681A22BF5; Tue, 16 Jul 2019 21:25:38 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150088.outbound.protection.outlook.com [40.107.15.88]) by dpdk.org (Postfix) with ESMTP id 79EA41B53; Tue, 16 Jul 2019 21:25:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RwwDuyNXOWIQ9KlW7DsQ26HnF4cnPXypTNNGPqj1IWypyVu2svc6nLXgXtlpyFoinksDMn/B+nq6tmGCJxmO9Kd+brnw9PHnJdc3gHrDCNJcajCfpQVVIFMyCMYn7DJRdnWSOYR5tdDqPpPadyZMGHnj40Oa5oXd64jxU1F0q2Rw1ieo9r35f2l7zQD30pexezX9/8iWjCh2yrzwMDNvr6FAOUFF9IzVcuCoVTAfij/mGlbSxF0cVobKbesNH9FnWlMyyLkY358WlifD0gyPFIy51rP3gBy+5kN879PUrX09Bdk/K2njM4HqUhs4J5Wh5CAOlKep1Fhj7b7FGcbhCQ== 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-SenderADCheck; bh=uWjMbJI5Hjz9lH2LeoA1WHym45z9JFCWslpQTbQsPqQ=; b=WI+TfnHBLaRSwxT31KBSB2DaZpbpRNH9VhpYLSB4sEA3w0TtYKLJWfLsE6mz6B0PTjdAIJSwxtNYCm2juLRbgR875nezTA6yzYCzc2JcKlRAWWyWcdVaajAMI6EroWr+hpPJ4tZru+n3aaoQj1E7Ce6w+jV1UXAvJ9K4OKESiJoHYsqz8ZD8FEDHQl+EjmsJMHy2sggD8eorgYTg6+ig2h5+581igkOTsER+DX0bnX/dtdcYQfVdpsXLjMD3bLmA61RLYyXqbbh05pDvM8NU8Y9lYqjO0wE+YQSenEnly05Wpw6M2KZVCrVkr81kpY26QWjku9wmq464B/1/u2j6CQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=arm.com;dmarc=pass action=none header.from=arm.com;dkim=pass header.d=arm.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uWjMbJI5Hjz9lH2LeoA1WHym45z9JFCWslpQTbQsPqQ=; b=pnohLXPufuWOhgkTX47xg8HdOdPKvi55GSYP9Q2BielAStEGFrUdOs+tVpUsrQa42zjhXGetcPoKARrGVo9EdWLhUGfepMQ3pwmZ7bvlVLo7OQ+h/blJqSDLW3LSz4tPckUq0nyElAYZ9LANomMiOxLUpPV+9+dxK3iER+u7nvU= Received: from VI1PR08MB3167.eurprd08.prod.outlook.com (52.133.15.142) by VI1PR08MB2765.eurprd08.prod.outlook.com (10.170.236.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.14; Tue, 16 Jul 2019 19:25:35 +0000 Received: from VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::5c6f:a70a:a1d7:5d65]) by VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::5c6f:a70a:a1d7:5d65%5]) with mapi id 15.20.2073.012; Tue, 16 Jul 2019 19:25:35 +0000 From: "Gavin Hu (Arm Technology China)" To: "thomas@monjalon.net" CC: Olivier Matz , "dev@dpdk.org" , nd , "jerinj@marvell.com" , "hemant.agrawal@nxp.com" , "Nipun.gupta@nxp.com" , Honnappa Nagarahalli , "i.maximets@samsung.com" , "stable@dpdk.org" Thread-Topic: [PATCH v9 1/2] ring: add reset API to flush the ring when not in use Thread-Index: AQHVOMooKl6tIysb80Oj9J9zlTBwkKbM+H6AgAAqEwCAACenoIAAFGeAgABIFBA= Date: Tue, 16 Jul 2019 19:25:35 +0000 Message-ID: References: <20181212062404.30243-1-gavin.hu@arm.com> <20190716113156.nhnirohjmzdbb4wl@platinum> <5216267.UWJeh5MzEM@xps> In-Reply-To: <5216267.UWJeh5MzEM@xps> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 08f19e26-e385-4797-975c-2db02dc2a558.0 x-checkrecipientchecked: true authentication-results: spf=none (sender IP is ) smtp.mailfrom=Gavin.Hu@arm.com; x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5c45426f-e3cf-4a8f-986f-08d70a2360a5 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VI1PR08MB2765; x-ms-traffictypediagnostic: VI1PR08MB2765: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-microsoft-antispam-prvs: nodisclaimer: True x-ms-oob-tlc-oobclassifiers: OLM:1751; x-forefront-prvs: 0100732B76 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(366004)(396003)(346002)(136003)(189003)(199004)(13464003)(3846002)(81166006)(81156014)(6436002)(1730700003)(446003)(6246003)(256004)(53936002)(99286004)(8676002)(2351001)(6506007)(5640700003)(53546011)(86362001)(8936002)(66556008)(25786009)(6116002)(64756008)(52536014)(2501003)(11346002)(55016002)(316002)(76116006)(478600001)(66946007)(476003)(9686003)(66446008)(66476007)(186003)(54906003)(4326008)(33656002)(26005)(2906002)(66066001)(5660300002)(7696005)(102836004)(76176011)(74316002)(486006)(6916009)(7736002)(305945005)(229853002)(71200400001)(68736007)(71190400001)(14454004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB2765; H:VI1PR08MB3167.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 9aeSJangqtGbixepKv3Amqpc56YQcHFLtmy1BCSPgCw+XU+BB+h7dPUqxMqQDyxjl0KpWMuWCNusCVPGrYGZMLMNJ+YH72RdGbQFBBo1+vmiYWGNfJSWOTAIwZkZowZ8BRftPsC4aEO7gH6UC+wGByUx/jDmsr6yjQ9fr7PUb/YjdrVvwG6IT/975DMwmTeH2RpkUG5D2oiKn0FOZd1e4w9O1Mf47DF7m1HtLj+PP9ey5wFShJTctsd3untNy2K9MMeWGuwKKS8QGBPBs177AAPAFF8uD2forO/A+7BnsU+Eu2/czTBJqRXIGkUcNEWdxo/rRF7KtmWgxPHo9kIsI/0Fz46QEXZu771pQAtLDJ+wjN3J3ycS/6hxHlkj/0w+YHwmvzZRAdQo7Nmfqc3HuRNFD9AWibreqAdg/zH6i9I= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c45426f-e3cf-4a8f-986f-08d70a2360a5 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jul 2019 19:25:35.5694 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Gavin.Hu@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2765 Subject: Re: [dpdk-dev] [PATCH v9 1/2] ring: add reset API to flush the ring when not in use X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Thomas, > -----Original Message----- > From: Thomas Monjalon > Sent: Tuesday, July 16, 2019 10:07 AM > To: Gavin Hu (Arm Technology China) > Cc: Olivier Matz ; dev@dpdk.org; nd > ; jerinj@marvell.com; hemant.agrawal@nxp.com; > Nipun.gupta@nxp.com; Honnappa Nagarahalli > ; i.maximets@samsung.com; > stable@dpdk.org > Subject: Re: [PATCH v9 1/2] ring: add reset API to flush the ring when no= t in > use >=20 > 16/07/2019 16:03, Gavin Hu (Arm Technology China): > > From: Olivier Matz > > > On Tue, Jul 16, 2019 at 11:01:21AM +0200, Olivier Matz wrote: > > > > On Fri, Jul 12, 2019 at 11:54:36PM +0800, Gavin Hu wrote: > > > > > Currently, the flush is done by dequeuing the ring in a while loo= p. It is > > > > > much simpler to flush the queue by resetting the head and tail > indices. > > > > > > > > > > Fixes: af75078fece3 ("first public release") > > > > > Cc: stable@dpdk.org > > > > > > Actually it's not a fix, it adds a new API. > > > > > > Is the patch in hash library intended to be backported? If yes, as it > > > seems to be a performance optimization, you'll need to describe what > > > scenario you're fixing and what is the performance gain. If no, the C= c > > > stable can be removed. > > > > As this is not in the data plan, I don't intend to backport. > > Do I need to submit a new version to remove the CC: lines? >=20 > Yes please. > You can also remove the "fixes" line in the first patch. Sure, just sent out V10, thanks!