From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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=QCzFe6pfkeW8jnIonfvW1id9eY/lNqvq3HDIP7ycs1w=; b=qz3oXQTlEcHvLHcv/TpLfQUew4vbM07x27ckRWO7hdRWnGvwO/zcxVaThHL/yu10Oq nJOHQMIpUbhqQGx0klTYaMm1icAEZ8EepKwxUjT6wLzbkEij9POFirPth6md+hxqjJx3 5AlpGPC5kGjlw30tpE6JzudCRlCTYkzN7lI2wSU6467NlpWH4sC5MExMvjnAfShPHbl3 qQ+h/qvdpZkMWe1UhylSxmiQnRMaaHbhszzp/76vf/dBYUT0RotFP+XAyDRsdoji9cst 8Eyz/It/FJeuT50rzGQdq0arWXaOzvo0bPAGN4rx3M/rf0sjfpFO4w42EKPnAFgO8LQf ZJGQ== 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=QCzFe6pfkeW8jnIonfvW1id9eY/lNqvq3HDIP7ycs1w=; b=PjR57B0jVAirSMXdcaZAduyeiVkehC/bJCd0FuxEgPGZfyVqb048girafCE2d214AA jZtG3bLHDMFLlgEtryEZeOxw+bboKi7GkuW6bP4KKHBqQFXA6sm3B7OoA1yjvteQRj/H tlBCaE6U2jVsdrguC5ma4hMoDGl2SvdB729xrjJdMuSuuTLrQMKtOftuC8UWW63Km7+9 +zP1mO8q7ArVtnGISwDubHJvzNBTUGVhfl8OX02eX8Vig9B1T89IjTa+DPKpdJfQ1WBw 8UUwsXw7M6SZOiEtFyZYryjQWYWK+JF6tNRpzG5C7GnWjt2ppemIwHjBvCL9wCsn4B3c 5wTA== X-Gm-Message-State: ALyK8tK+xSr9Ujh2ER8WWJkHTyRA2g6eMXKRgy1bZGb+jLz/OZ0gRNg8IYsW4UYEg31E55xd X-Received: by 10.28.191.193 with SMTP id o62mr39658851wmi.64.1468618339365; Fri, 15 Jul 2016 14:32:19 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id 17sm7820987wmf.6.2016.07.15.14.32.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jul 2016 14:32:18 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Cc: Nelson Escobar , bruce.richardson@intel.com Date: Fri, 15 Jul 2016 23:32:17 +0200 Message-ID: <2647844.7CQCx7f6Nb@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1468428754-13809-1-git-send-email-neescoba@cisco.com> References: <1468428754-13809-1-git-send-email-neescoba@cisco.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] net/enic: fix calculation of truncated 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:32:19 -0000 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