summaryrefslogtreecommitdiff
path: root/sys/dev/cm
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2014-09-19 03:51:26 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2014-09-19 03:51:26 +0000
commitc8dfaf382fa6df9dc6fd1e1c3356e0c8bf607e6a (patch)
tree6899fa7510de1719ea0a76790446b61cd2d300fe /sys/dev/cm
parentd3c24fcffe1e1fab13dd9763580f96fac214e36d (diff)
Notes
Diffstat (limited to 'sys/dev/cm')
-rw-r--r--sys/dev/cm/smc90cx6.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/cm/smc90cx6.c b/sys/dev/cm/smc90cx6.c
index e0e8e42fa2b1..a1932ad54ddb 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: