From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] examples/distributor: fix Rx thread logic for zero packets Date: Fri, 15 Jul 2016 23:44:29 +0200 Message-ID: <7170440.XHxzSDpE81@xps13> References: <1468511325-15117-1-git-send-email-reshma.pattan@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "De Lara Guarch, Pablo" To: "Pattan, Reshma" Return-path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 2FD55567F for ; Fri, 15 Jul 2016 23:44:31 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id o80so46014661wme.1 for ; Fri, 15 Jul 2016 14:44:31 -0700 (PDT) In-Reply-To: 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" > > Zero packets can be returned by rte_eth_rx_burst() and > > rte_distributor_returned_pkts() inside lcore_rx(), so > > for zero packet scenario instead of proceeding to > > next operations we should continue to the next iteration of the > > loop to avoid unnecessary processing overhead which is causing > > rx packets to be dropped and hence distributor failing to forward the > > packets. > > > > Fixes: 07db4a97 ("examples/distributor: new sample app") > > > > Signed-off-by: Reshma Pattan > > Acked-by: Pablo de Lara Applied, thanks