* [dpdk-dev] [PATCH v2 1/1] ixgbe: Fix phy errors in stats->ierrors
@ 2015-07-20 12:28 Maryam Tahhan
2015-07-20 12:48 ` Balazs Nemeth
2015-07-21 5:41 ` Lu, Wenzhuo
0 siblings, 2 replies; 5+ messages in thread
From: Maryam Tahhan @ 2015-07-20 12:28 UTC (permalink / raw)
To: 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 <maryam.tahhan@intel.com>
---
drivers/net/ixgbe/ixgbe_ethdev.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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*/
--
2.4.3
^ permalink raw reply [flat|nested] 5+ messages in thread
* [dpdk-dev] [PATCH v2 1/1] ixgbe: Fix phy errors in stats->ierrors
2015-07-20 12:28 [dpdk-dev] [PATCH v2 1/1] ixgbe: Fix phy errors in stats->ierrors Maryam Tahhan
@ 2015-07-20 12:48 ` Balazs Nemeth
2015-07-21 5:41 ` Lu, Wenzhuo
1 sibling, 0 replies; 5+ messages in thread
From: Balazs Nemeth @ 2015-07-20 12:48 UTC (permalink / raw)
To: balazs.nemeth, maryam.tahhan, 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
Acked-by: Balazs Nemeth <balazs.nemeth at intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH v2 1/1] ixgbe: Fix phy errors in stats->ierrors
2015-07-20 12:28 [dpdk-dev] [PATCH v2 1/1] ixgbe: Fix phy errors in stats->ierrors Maryam Tahhan
2015-07-20 12:48 ` Balazs Nemeth
@ 2015-07-21 5:41 ` Lu, Wenzhuo
2015-07-21 12:41 ` Liu, Yong
1 sibling, 1 reply; 5+ messages in thread
From: Lu, Wenzhuo @ 2015-07-21 5:41 UTC (permalink / raw)
To: Tahhan, Maryam, dev
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>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH v2 1/1] ixgbe: Fix phy errors in stats->ierrors
2015-07-21 5:41 ` Lu, Wenzhuo
@ 2015-07-21 12:41 ` Liu, Yong
2015-07-23 13:00 ` Thomas Monjalon
0 siblings, 1 reply; 5+ messages in thread
From: Liu, Yong @ 2015-07-21 12:41 UTC (permalink / raw)
To: Lu, Wenzhuo, Tahhan, Maryam, dev
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>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH v2 1/1] ixgbe: Fix phy errors in stats->ierrors
2015-07-21 12:41 ` Liu, Yong
@ 2015-07-23 13:00 ` Thomas Monjalon
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2015-07-23 13:00 UTC (permalink / raw)
To: Tahhan, Maryam; +Cc: dev, Nemeth, Balazs
> > > 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-07-23 13:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-20 12:28 [dpdk-dev] [PATCH v2 1/1] ixgbe: Fix phy errors in stats->ierrors Maryam Tahhan
2015-07-20 12:48 ` Balazs Nemeth
2015-07-21 5:41 ` Lu, Wenzhuo
2015-07-21 12:41 ` Liu, Yong
2015-07-23 13:00 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).