Fix clearing MAC stats registers. Previously it cleared every
fourth register. Submitted by: Paul A. Patience <paul-a.patience@polymtl.ca> Approved by: re (gjb)
This commit is contained in:
parent
d3baefa809
commit
2067877e8d
@ -3205,8 +3205,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);
|
||||
|
Loading…
Reference in New Issue
Block a user