mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
MFC 197589.
Fix MIB statistics clear routine. This should fix alignment errors on sparc64. Reported by: Garrett Damore < gdamore <> opensolaris dot org >
This commit is contained in:
parent
5bb9dc0d8f
commit
b76e9c0853
1 changed files with 1 additions and 1 deletions
|
|
@ -4190,7 +4190,7 @@ msk_stats_clear(struct msk_if_softc *sc_if)
|
|||
gmac = GMAC_READ_2(sc, sc_if->msk_port, GM_PHY_ADDR);
|
||||
GMAC_WRITE_2(sc, sc_if->msk_port, GM_PHY_ADDR, gmac | GM_PAR_MIB_CLR);
|
||||
/* Read all MIB Counters with Clear Mode set. */
|
||||
for (i = GM_RXF_UC_OK; i <= GM_TXE_FIFO_UR; i++)
|
||||
for (i = GM_RXF_UC_OK; i <= GM_TXE_FIFO_UR; i += sizeof(uint32_t))
|
||||
reg = MSK_READ_MIB32(sc_if->msk_port, i);
|
||||
/* Clear MIB Clear Counter Mode. */
|
||||
gmac &= ~GM_PAR_MIB_CLR;
|
||||
|
|
|
|||
Loading…
Reference in a new issue