svn commit: r256825 - stable/9/sys/dev/nfe
Pyun YongHyeon
yongari at FreeBSD.org
Mon Oct 21 05:57:37 UTC 2013
Author: yongari
Date: Mon Oct 21 05:57:36 2013
New Revision: 256825
URL: http://svnweb.freebsd.org/changeset/base/256825
Log:
MFC r256038:
Fix clearing MAC stats registers. Previously it cleared every
fourth register.
Submitted by: Paul A. Patience <paul-a.patience at polymtl.ca>
Modified:
stable/9/sys/dev/nfe/if_nfe.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Modified: stable/9/sys/dev/nfe/if_nfe.c
==============================================================================
--- stable/9/sys/dev/nfe/if_nfe.c Mon Oct 21 05:14:00 2013 (r256824)
+++ stable/9/sys/dev/nfe/if_nfe.c Mon Oct 21 05:57:36 2013 (r256825)
@@ -3206,8 +3206,8 @@ nfe_stats_clear(struct nfe_softc *sc)
else
return;
- for (i = 0; i < mib_cnt; i += sizeof(uint32_t))
- NFE_READ(sc, NFE_TX_OCTET + i);
+ for (i = 0; i < mib_cnt; i++)
+ NFE_READ(sc, NFE_TX_OCTET + i * sizeof(uint32_t));
if ((sc->nfe_flags & NFE_MIB_V3) != 0) {
NFE_READ(sc, NFE_TX_UNICAST);
More information about the svn-src-stable-9
mailing list