From: Declan Doherty Subject: Re: [PATCH] crypto/aesni_gcm: do crypto op in dequeue function Date: Thu, 30 Mar 2017 12:44:55 +0100 Message-ID: <7923ff78-ba53-4573-5c83-efc699ff53c1@intel.com> References: <20170329134253.31909-1-sergio.gonzalez.monroy@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: pablo.de.lara.guarch@intel.com, stable@dpdk.org To: Sergio Gonzalez Monroy , dev@dpdk.org Return-path: In-Reply-To: <20170329134253.31909-1-sergio.gonzalez.monroy@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 crypto op into the internal ring, which in the case of being > full 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 > fixes the above issue without having to check for the number of free > entries in the ring. > > Fixes: eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto operations") > > Signed-off-by: Sergio Gonzalez Monroy > --- ... > Hey Sergio, this looks good but it needs to be rebased for the rte_ring API change. I also see a marginally performance increase with this change using the crypto-perf app which wasn't expected. Acked-by: Declan Doherty