From: "Doherty, Declan" Subject: Re: [PATCH] crypto/aesni_gcm: do crypto op in dequeue function Date: Thu, 30 Mar 2017 11:55:57 +0000 Message-ID: <345C63BAECC1AD42A2EC8C63AFFC3ADC63D36255@IRSMSX102.ger.corp.intel.com> References: <20170329134253.31909-1-sergio.gonzalez.monroy@intel.com> <7923ff78-ba53-4573-5c83-efc699ff53c1@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "stable@dpdk.org" To: "De Lara Guarch, Pablo" , "Gonzalez Monroy, Sergio" , "dev@dpdk.org" Return-path: In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" -----Original Message----- From: De Lara Guarch, Pablo=20 Sent: Thursday, March 30, 2017 12:54 PM To: Doherty, Declan ; Gonzalez Monroy, Sergio ; dev@dpdk.org Cc: stable@dpdk.org Subject: RE: [PATCH] crypto/aesni_gcm: do crypto op in dequeue function > -----Original Message----- > From: Doherty, Declan > Sent: Thursday, March 30, 2017 12:45 PM > To: Gonzalez Monroy, Sergio; dev@dpdk.org > Cc: De Lara Guarch, Pablo; stable@dpdk.org > Subject: Re: [PATCH] crypto/aesni_gcm: do crypto op in dequeue=20 > function >=20 > On 29/03/17 14:42, Sergio Gonzalez Monroy wrote: > > There is bug when more crypto ops are enqueued than dequeued. > > The return value is not checked when trying to enqueue the processed=20 > > crypto op into the internal ring, which in the case of being full=20 > > will results in crypto ops and mbufs being leaked. > > The issue is more obvious with different cores doing enqueue/dequeue. > > > > This patch moves the crypto operation to the dequeue function which=20 > > fixes the above issue without having to check for the number of free=20 > > entries in the ring. > > > > Fixes: eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto > operations") > > > > Signed-off-by: Sergio Gonzalez Monroy > > > --- > ... > > > Hi Declan, > Hey Sergio, this looks good but it needs to be rebased for the=20 > rte_ring API change. I also see a marginally performance increase with=20 > this change using the crypto-perf app which wasn't expected. Unless there is other change necessary, I can make that change when merging= . Thanks, Pablo >=20 >=20 > Acked-by: Declan Doherty Cool, no, that's the only issue. Cheers Declan