Message ID | 1437395309-197026-1-git-send-email-maryam.tahhan@intel.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 092C1C3B8; Mon, 20 Jul 2015 14:28:35 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 6F1B6C3AE for <dev@dpdk.org>; Mon, 20 Jul 2015 14:28:33 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 20 Jul 2015 05:28:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,507,1432623600"; d="scan'208";a="527109451" Received: from sie-lab-212-170.ir.intel.com (HELO silpixa00378251.ir.intel.com) ([10.237.212.170]) by FMSMGA003.fm.intel.com with ESMTP; 20 Jul 2015 05:28:32 -0700 From: Maryam Tahhan <maryam.tahhan@intel.com> To: dev@dpdk.org Date: Mon, 20 Jul 2015 13:28:29 +0100 Message-Id: <1437395309-197026-1-git-send-email-maryam.tahhan@intel.com> X-Mailer: git-send-email 2.4.3 Subject: [dpdk-dev] [PATCH v2 1/1] ixgbe: Fix phy errors in stats->ierrors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
Tahhan, Maryam
July 20, 2015, 12:28 p.m. UTC
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 <maryam.tahhan@intel.com>
---
drivers/net/ixgbe/ixgbe_ethdev.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
> 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 Acked-by: Balazs Nemeth <balazs.nemeth at intel.com>
Hi, > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Maryam Tahhan > Sent: Monday, July 20, 2015 8:28 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v2 1/1] ixgbe: Fix phy errors in stats->ierrors > > 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 <maryam.tahhan@intel.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Tested-by: Marvin Liu <yong.liu@intel.com> > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Lu, Wenzhuo > Sent: Tuesday, July 21, 2015 1:41 PM > To: Tahhan, Maryam; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 1/1] ixgbe: Fix phy errors in stats- > >ierrors > > Hi, > > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Maryam Tahhan > > Sent: Monday, July 20, 2015 8:28 PM > > To: dev@dpdk.org > > Subject: [dpdk-dev] [PATCH v2 1/1] ixgbe: Fix phy errors in stats- > >ierrors > > > > 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 <maryam.tahhan@intel.com> > Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
> > > 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 <maryam.tahhan@intel.com> > > Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com> > Tested-by: Marvin Liu <yong.liu@intel.com> Applied, thanks
diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 3a8cff0..09fac25 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -2143,8 +2143,7 @@ ixgbe_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) hw_stats->rfc + hw_stats->rjc + hw_stats->fccrc + - hw_stats->fclast + - (rxnfgpc - hw_stats->gprc); /* PHY Errors*/ + hw_stats->fclast; /* Tx Errors */ /*txdgpc: packets that are DMA'ed*/