aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/rt
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/rt
parentd3c24fcffe1e1fab13dd9763580f96fac214e36d (diff)
Notes
Diffstat (limited to 'sys/dev/rt')
-rw-r--r--sys/dev/rt/if_rt.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/rt/if_rt.c b/sys/dev/rt/if_rt.c
index 3d936b58240f..910276fdc719 100644
--- a/sys/dev/rt/if_rt.c
+++ b/sys/dev/rt/if_rt.c
@@ -1025,7 +1025,7 @@ rt_start(struct ifnet *ifp)
m_freem(m);
ifp->if_drv_flags |= IFF_DRV_OACTIVE;
- ifp->if_oerrors++;
+ if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
sc->tx_data_queue_full[qid]++;
@@ -1035,7 +1035,7 @@ rt_start(struct ifnet *ifp)
if (rt_tx_data(sc, m, qid) != 0) {
RT_SOFTC_TX_RING_UNLOCK(&sc->tx_ring[qid]);
- ifp->if_oerrors++;
+ if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
break;
}
@@ -1152,7 +1152,7 @@ rt_tx_watchdog(void *arg)
rt_stop_locked(sc);
rt_init_locked(sc);
#endif
- ifp->if_oerrors++;
+ if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
sc->tx_watchdog_timeouts++;
}
callout_reset(&sc->tx_watchdog_ch, hz, rt_tx_watchdog, sc);
@@ -1637,7 +1637,7 @@ rt_rx_eof(struct rt_softc *sc, int limit)
MJUMPAGESIZE);
if (mnew == NULL) {
sc->rx_mbuf_alloc_errors++;
- ifp->if_ierrors++;
+ if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
goto skip;
}
@@ -1654,7 +1654,7 @@ rt_rx_eof(struct rt_softc *sc, int limit)
m_freem(mnew);
sc->rx_mbuf_dmamap_errors++;
- ifp->if_ierrors++;
+ if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
goto skip;
}
@@ -1700,7 +1700,7 @@ rt_rx_eof(struct rt_softc *sc, int limit)
RT_DPRINTF(sc, RT_DEBUG_RX,
"rxdesc: crc error\n");
- ifp->if_ierrors++;
+ if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
if (!(ifp->if_flags & IFF_PROMISC)) {
m_freem(m);
@@ -1785,7 +1785,7 @@ rt_tx_eof(struct rt_softc *sc, struct rt_softc_tx_ring *ring)
data->m = NULL;
- ifp->if_opackets++;
+ if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);
RT_SOFTC_TX_RING_LOCK(ring);
ring->data_queued--;