From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stable-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 7FD26A0487
	for <public@inbox.dpdk.org>; Thu,  4 Jul 2019 16:42:36 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 63FA81BE64;
	Thu,  4 Jul 2019 16:42:36 +0200 (CEST)
Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com
 [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 879231F28;
 Thu,  4 Jul 2019 16:42:33 +0200 (CEST)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.nyi.internal (Postfix) with ESMTP id E016221ADD;
 Thu,  4 Jul 2019 10:42:32 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute1.internal (MEProxy); Thu, 04 Jul 2019 10:42:32 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding:content-type; s=mesmtp;
 bh=PudJGcNDBD0Bif6gEJultfBUbIakKUsBxehs4WOGlJE=; b=Dx2vn5OP/0sW
 RsFfby4oU6GDVjuhsPXH328IwZWCzN0FWjN3rKPJzLM35Pc2kOwpHv/TB7B2FLL4
 GC6biJpPDkgTBK7UA7Q9tJUnOu1g5Cu65+8krB39FevPV5ck8j+s6UkpkIAVGoxR
 h/+5gqKKG1VyFWXyqU6BabsHmjV3NwQ=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm3; bh=PudJGcNDBD0Bif6gEJultfBUbIakKUsBxehs4WOGl
 JE=; b=Kjgg1tgrotHbXgmIWfCajUz32Gze/MdqjEYzYcHhPu5k8cBP0qvxY7rmL
 xfzGFV1rU8ScisxGDCzOySjkmqz+DKmPgRVnKsYsKVYhb52mPgMmnYi0d0gxCLri
 xuj3W6nm6VMbiJrVmBDeXIjvBvfGf1sB7Py3vBsvB+lsKCTXYWhzvVCz1sb25J84
 HBhnRapMKKOzy8IeVN7ZKbcATOffV/y1m0f5IQPFiOhkP57j9XmHREvDvnWXYqSr
 1J+oUNDtl35P6SZ1NlAZ1GQYhJNPuA1ifhJ/ESc8bVhOBzoEA82ZVcQIVPttVfL0
 McIlhFFRWyVZetOriIwgMmwGWM9tQ==
X-ME-Sender: <xms:VxAeXa_R7GqSoA-hUleSL30hqIaad9nH09pNq07vrgAOiMLlHU9W0A>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrfedvgdekvdcutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs
 ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucffoh
 hmrghinhephhhurghrmhdrtghomhenucfkphepjeejrddufeegrddvtdefrddukeegnecu
 rfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtne
 cuvehluhhsthgvrhfuihiivgeptd
X-ME-Proxy: <xmx:VxAeXVKPJSQlpPLvNiuYQ9ImPTaweLCR4gfTPMYr0pDPUAPQCjsoOw>
 <xmx:VxAeXXgwxLDaQ6Tt2m3KCJ--gycS6XeFeEwDN-LaZJZoSWCi8NiiFg>
 <xmx:VxAeXZ-UpMIW44ItfvAeKx5PHYua5LgHxjLfsxJzZnNHtlCK0q5S4Q>
 <xmx:WBAeXUGKZVSN3TfatJgyGBe-DC36YsoJumbIa50_-ITvQzDMRz61Vg>
Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184])
 by mail.messagingengine.com (Postfix) with ESMTPA id 6977E80059;
 Thu,  4 Jul 2019 10:42:30 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: Gavin Hu <gavin.hu@arm.com>
Cc: dev@dpdk.org, Olivier Matz <olivier.matz@6wind.com>, nd@arm.com,
 jerinj@marvell.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com,
 Honnappa.Nagarahalli@arm.com, i.maximets@samsung.com, stable@dpdk.org
Date: Thu, 04 Jul 2019 16:42:29 +0200
Message-ID: <2965897.HCpMyYeHc3@xps>
In-Reply-To: <20190329141755.ziopuvhepdi372aa@platinum>
References: <20181212062404.30243-1-gavin.hu@arm.com>
 <1552620686-10347-2-git-send-email-gavin.hu@arm.com>
 <20190329141755.ziopuvhepdi372aa@platinum>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v7 1/2] ring: add reset API to
	flush the ring when not in use
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
Errors-To: stable-bounces@dpdk.org
Sender: "stable" <stable-bounces@dpdk.org>

29/03/2019 15:17, Olivier Matz:
> Hi,
> 
> On Fri, Mar 15, 2019 at 11:31:25AM +0800, Gavin Hu wrote:
> > Currently, the flush is done by dequeuing the ring in a while loop. It is
> > much simpler to flush the queue by resetting the head and tail indices.
> > 
> > Fixes: af75078fece3 ("first public release")
> > Cc: stable@dpdk.org
> > 
> > Signed-off-by: Gavin Hu <gavin.hu@arm.com>
> > Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
> > Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
> > ---
> > --- a/lib/librte_ring/rte_ring_version.map
> > +++ b/lib/librte_ring/rte_ring_version.map
> > @@ -17,3 +17,10 @@ DPDK_2.2 {
> >  	rte_ring_free;
> >  
> >  } DPDK_2.0;
> > +
> > +EXPERIMENTAL {
> > +    global:
> > +
> > +	rte_ring_reset;
> > +
> > +};
> 
> To me, a static inline function does not need to be added in
> rte_ring_version.map (or is it due to a check script checking the
> __rte_experimental tag ?). I found at least one commit where it
> is not the case:
> c277b34c1b3b ("mbuf: add function returning buffer address")
> 
> There are 2 options:
> 1- remove the rte_ring_version.map part of the patch.
> 2- change the static inline function into a standard function.
> 
> I would prefer 2-, because it allows to keep an api/abi compat
> layer in the future.

There are no news about this patch.
I classify it as changes requested.