From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] examples/l2fwd-crypto: flush crypto dev buffers Date: Mon, 11 Jul 2016 17:14:15 +0200 Message-ID: <3131295.VGPtJqbz11@xps13> References: <1467797930-16174-1-git-send-email-pablo.de.lara.guarch@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, declan.doherty@intel.com To: Pablo de Lara Return-path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 9EF2F282 for ; Mon, 11 Jul 2016 17:14:20 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id f126so94634775wma.1 for ; Mon, 11 Jul 2016 08:14:20 -0700 (PDT) In-Reply-To: <1467797930-16174-1-git-send-email-pablo.de.lara.guarch@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-07-06 10:38, Pablo de Lara: > Crypto operations are enqueued in the crypto devices > when the crypto device buffers are full (MAX_PKT_BURST), > in order to be more efficient. > > The problem is that operations might be stuck in those buffers, > if they never get full, and therefore, those operations > will never be performed. > > Therefore, it is necessary to have a buffer flush mechanism, > similar to the one used for flush the TX buffers, so eventually, > all packets received are ciphered and sent out. > > Fixes: 387259bd6c67 ("examples/l2fwd-crypto: add sample application") > > Signed-off-by: Pablo de Lara Applied, thanks