summaryrefslogtreecommitdiffstats
path: root/sys/dev/fatm
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-09-19 03:51:26 +0000
committerglebius <glebius@FreeBSD.org>2014-09-19 03:51:26 +0000
commitb3b337a80e78f4cc2d0c75f98e4685bee9c749c9 (patch)
tree6899fa7510de1719ea0a76790446b61cd2d300fe /sys/dev/fatm
parent094cca2b36ac9809749d6a0b76bcd37556939c00 (diff)
downloadFreeBSD-src-b3b337a80e78f4cc2d0c75f98e4685bee9c749c9.zip
FreeBSD-src-b3b337a80e78f4cc2d0c75f98e4685bee9c749c9.tar.gz
Mechanically convert to if_inc_counter().
Diffstat (limited to 'sys/dev/fatm')
-rw-r--r--sys/dev/fatm/if_fatm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fatm/if_fatm.c b/sys/dev/fatm/if_fatm.c
index b6b4e13d..b3281fe 100644
--- a/sys/dev/fatm/if_fatm.c
+++ b/sys/dev/fatm/if_fatm.c
@@ -1564,7 +1564,7 @@ fatm_intr_drain_rx(struct fatm_softc *sc)
ATM_PH_SETVCI(&aph, vci);
ifp = sc->ifp;
- ifp->if_ipackets++;
+ if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
vc->ipackets++;
vc->ibytes += m0->m_pkthdr.len;
@@ -1974,7 +1974,7 @@ fatm_tx(struct fatm_softc *sc, struct mbuf *m, struct card_vcc *vc, u_int mlen)
error = bus_dmamap_load_mbuf(sc->tx_tag, q->map, m,
fatm_tpd_load, tpd, BUS_DMA_NOWAIT);
if(error) {
- sc->ifp->if_oerrors++;
+ if_inc_counter(sc->ifp, IFCOUNTER_OERRORS, 1);
if_printf(sc->ifp, "mbuf loaded error=%d\n", error);
m_freem(m);
return (0);
@@ -2025,7 +2025,7 @@ fatm_tx(struct fatm_softc *sc, struct mbuf *m, struct card_vcc *vc, u_int mlen)
BARRIER_W(sc);
sc->txcnt++;
- sc->ifp->if_opackets++;
+ if_inc_counter(sc->ifp, IFCOUNTER_OPACKETS, 1);
vc->obytes += m->m_pkthdr.len;
vc->opackets++;
OpenPOWER on IntegriCloud