diff options
Diffstat (limited to 'sys/dev/cm/smc90cx6.c')
-rw-r--r-- | sys/dev/cm/smc90cx6.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/cm/smc90cx6.c b/sys/dev/cm/smc90cx6.c index e0e8e42..a1932ad 100644 --- a/sys/dev/cm/smc90cx6.c +++ b/sys/dev/cm/smc90cx6.c @@ -512,7 +512,7 @@ cm_srint_locked(vsc) * count it as input error (we dont have any other * detectable) */ - ifp->if_ierrors++; + if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); goto cleanup; } @@ -544,13 +544,13 @@ cm_srint_locked(vsc) /* Insist on getting a cluster */ if ((m->m_flags & M_EXT) == 0) { - ifp->if_ierrors++; + if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); goto cleanup; } } if (m == 0) { - ifp->if_ierrors++; + if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); goto cleanup; } @@ -572,7 +572,7 @@ cm_srint_locked(vsc) CM_LOCK(sc); m = NULL; - ifp->if_ipackets++; + if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); cleanup: @@ -620,7 +620,7 @@ cm_tint_locked(sc, isr) */ if (isr & CM_TMA || sc->sc_broadcast[buffer]) - ifp->if_opackets++; + if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1); #ifdef CMRETRANSMIT else if (ifp->if_flags & IFF_LINK2 && sc->sc_timer > 0 && --sc->sc_retransmits[buffer] > 0) { @@ -630,7 +630,7 @@ cm_tint_locked(sc, isr) } #endif else - ifp->if_oerrors++; + if_inc_counter(ifp, IFCOUNTER_OERRORS, 1); /* We know we can accept another buffer at this point. */ @@ -730,7 +730,7 @@ cmintr(arg) * PUTREG(CMCMD, CM_CONF(CONF_LONG)); */ PUTREG(CMCMD, CM_CLR(CLR_RECONFIG)); - ifp->if_collisions++; + if_inc_counter(ifp, IFCOUNTER_COLLISIONS, 1); /* * If less than 2 seconds per reconfig: |