From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=IPFbl1VoLsFDZORVMLI881HHrPpS+BoFtXfmtP0BO2g=; b=v+58Sq9tuVBZ4k0OAaW6HCk3JraASON5dEpc2StvrEoaAmnuN8O2uCBBoYKwOihp1N 9gwSVtixiWX78K8I47VuSGylRu+g49Rxq44vI9y8DUBOv/VPP3H6UpoWb41H+bKsXtko dTPeOTu9cLCk3xpydczRgYJ/SOPc8rqx6P/4dwWemIQQXTiR0I2OqJCAb3C817+PPHJD +noyF7sQ0SY/Kh68IcS6mDR9lGa5vX34DhldJpW6xooz/zLigtLyimc5kYmmJv1jV+lq qD2ycnESSN0KKSLSy8FRusY5skdxZiYsOjaI2uSMjYFol3JgfSfEcYGvVkm+I1hVkduk AlNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=IPFbl1VoLsFDZORVMLI881HHrPpS+BoFtXfmtP0BO2g=; b=TqN4e9m21OqLTR+sujQYsr/KtVvSCKHIOLHHbC3HHN+rlslEH7Uf7eZFFRYHF021od nlySBMpygV2bVxu+kHULwJJBVi7sJ6CqNsKYoe+H7gRUF2kuaFIMiQJ30DsMFcdoOEL5 nhBraR1EZFXT5eVwHY4m9loMH6IPKjv8I8kI/Kz6ZabHuE8dUPJu8s8pKfAa0lprnjL+ Xi67XJ6wqdujypY2MH+vOngqp1KRdxZfKZXDXxlLa43t40djgtwtoGTALY3Y9oDNvfrh sEPQRU6cyC3R/C31ZTmjq9F5vz0DxzUT0J2BMR7bHpwQUwR0PJB6guRpf+M+O5lYF90+ q/1A== X-Gm-Message-State: ALyK8tKDXTXK18yfr6A0XyvUFCEmhmEX62J4R/nfVymWK0lfQvLZxqkGa/Eav0n3Ddwmctt9 X-Received: by 10.194.63.103 with SMTP id f7mr2518493wjs.56.1468619071007; Fri, 15 Jul 2016 14:44:31 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id kb10sm2630499wjc.31.2016.07.15.14.44.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jul 2016 14:44:30 -0700 (PDT) From: Thomas Monjalon To: "Pattan, Reshma" Cc: dev@dpdk.org, "De Lara Guarch, Pablo" Date: Fri, 15 Jul 2016 23:44:29 +0200 Message-ID: <7170440.XHxzSDpE81@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1468511325-15117-1-git-send-email-reshma.pattan@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 21:44:31 -0000 > > 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