From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] net/enic: fix calculation of truncated packets Date: Fri, 15 Jul 2016 23:32:17 +0200 Message-ID: <2647844.7CQCx7f6Nb@xps13> References: <1468428754-13809-1-git-send-email-neescoba@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Nelson Escobar , bruce.richardson@intel.com To: dev@dpdk.org Return-path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 8EA4B532C for ; Fri, 15 Jul 2016 23:32:19 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id i5so45631539wmg.0 for ; Fri, 15 Jul 2016 14:32:19 -0700 (PDT) In-Reply-To: <1468428754-13809-1-git-send-email-neescoba@cisco.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-13 09:52, Nelson Escobar: > The calculation of truncated packets didn't take into account packet > errors due to the adapter not having buffers, causing both the > ipackets, and imissed counts to be wrong if such errors occurred. In > order to properly calculate the number of packets truncated, we need > to subtract the count of errors due to no buffers. > > Fixes: c44d9f01adf3 ("net/enic: count truncated packets") > > Signed-off-by: Nelson Escobar Applied, thanks