From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 8A221530A for ; Fri, 15 Jul 2016 12:00:05 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 15 Jul 2016 02:59:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,367,1464678000"; d="scan'208";a="1022266359" Received: from irsmsx109.ger.corp.intel.com ([163.33.3.23]) by fmsmga002.fm.intel.com with ESMTP; 15 Jul 2016 02:59:48 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.125]) by IRSMSX109.ger.corp.intel.com ([169.254.13.193]) with mapi id 14.03.0248.002; Fri, 15 Jul 2016 10:59:47 +0100 From: "De Lara Guarch, Pablo" To: "Pattan, Reshma" , "dev@dpdk.org" CC: "Pattan, Reshma" Thread-Topic: [dpdk-dev] [PATCH] examples/distributor: fix Rx thread logic for zero packets Thread-Index: AQHR3edGQWbkvLG6pECQ/hNtZlLTG6AZQkaA Date: Fri, 15 Jul 2016 09:59:47 +0000 Message-ID: References: <1468511325-15117-1-git-send-email-reshma.pattan@intel.com> In-Reply-To: <1468511325-15117-1-git-send-email-reshma.pattan@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzE5ZjQ4NTgtMDM4MC00NTU3LWI2N2MtZDM3NDBlZmFlYWVhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkU4NTdaNjl5RFwvaytIS05yclwvM2Jxcnk2ZmlrK3JweDQrbzd4UVdjUE55Zz0ifQ== x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] examples/distributor: fix Rx thread logic for zero packets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2016 10:00:05 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Reshma Pattan > Sent: Thursday, July 14, 2016 4:49 PM > To: dev@dpdk.org > Cc: Pattan, Reshma > Subject: [dpdk-dev] [PATCH] examples/distributor: fix Rx thread logic for= zero > packets >=20 > From: Reshma Pattan >=20 > 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. >=20 > Fixes: 07db4a97 ("examples/distributor: new sample app") >=20 > Signed-off-by: Reshma Pattan Acked-by: Pablo de Lara