Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2013 05:57:37 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r256825 - stable/9/sys/dev/nfe
Message-ID:  <201310210557.r9L5vbcN058799@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310210557.r9L5vbcN058799>