From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 1/1] ixgbe: Fix phy errors in stats->ierrors Date: Thu, 23 Jul 2015 15:00:21 +0200 Message-ID: <1798990.EYfMvRFpM3@xps13> References: <1437395309-197026-1-git-send-email-maryam.tahhan@intel.com> <6A0DE07E22DDAD4C9103DF62FEBC0909CFB94D@shsmsx102.ccr.corp.intel.com> <86228AFD5BCD8E4EBFD2B90117B5E81E10E67623@SHSMSX103.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Nemeth, Balazs" To: "Tahhan, Maryam" Return-path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by dpdk.org (Postfix) with ESMTP id E782FC370 for ; Thu, 23 Jul 2015 15:01:34 +0200 (CEST) Received: by wibud3 with SMTP id ud3so217921971wib.0 for ; Thu, 23 Jul 2015 06:01:34 -0700 (PDT) In-Reply-To: <86228AFD5BCD8E4EBFD2B90117B5E81E10E67623@SHSMSX103.ccr.corp.intel.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" > > > Fixes: f6bf669b990004dc69231476d9fcf0b80574e568. Bug fix to remove > > > (rxnfgpc - hw_stats->gprc) which does not account for phy errors. > > > hw_stats->gprc is the Number of good (non-erred) Rx packets (from the > > > network) that pass L2 filtering and has a legal length as defined by > > > LongPacketEnable. While rxnfgpc is the Number of good (non-erred with > > legal > > > length) Rx packets (from the network) regardless of packet filtering and > > receive > > > enablement. Thus hw_stats->gprc can be > rxnfgpc and this calculation > > should > > > be removed from the calculation of ierrors. > > > Validated with testpmd by sending packets to the interface without > > forwarding > > > enabled - packets should be dropped and the error counters incremented. > > > > > > v2: > > > - specified the commit that this bug fix fixes. > > > > > > Signed-off-by: Maryam Tahhan > > Acked-by: Wenzhuo Lu > Tested-by: Marvin Liu Applied, thanks