Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2013 22:34:52 -0400
From:      Paul A. Patience <paul-a.patience@polymtl.ca>
To:        freebsd-drivers@freebsd.org
Subject:   nfe(4) driver bug
Message-ID:  <d8341d5a22ef3aee3f6087567cc5c00d@yourdomain.dom>

next in thread | raw e-mail | index | archive | help
Hello,

I was reading the nfe(4) driver and noticed a bug.
rx_broadcast should in fact be tx_broadcast:

@@ -3260,7 +3260,7 @@
 	if ((sc->nfe_flags & NFE_MIB_V3) != 0) {
 		stats->tx_unicast += NFE_READ(sc, NFE_TX_UNICAST);
 		stats->tx_multicast += NFE_READ(sc, NFE_TX_MULTICAST);
-		stats->rx_broadcast += NFE_READ(sc, NFE_TX_BROADCAST);
+		stats->tx_broadcast += NFE_READ(sc, NFE_TX_BROADCAST);
 	}
 }

--
pap



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