summaryrefslogtreecommitdiffstats
path: root/sys/mips/adm5120
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-09-19 09:19:49 +0000
committerglebius <glebius@FreeBSD.org>2014-09-19 09:19:49 +0000
commit375a1fa081404668444c555c04bcfb9fb8e988ff (patch)
tree233f06ef7fdd0429b3dbd14bec8f152537fe31fa /sys/mips/adm5120
parent16745af5433b422f958bb64851808495f06e66d8 (diff)
downloadFreeBSD-src-375a1fa081404668444c555c04bcfb9fb8e988ff.zip
FreeBSD-src-375a1fa081404668444c555c04bcfb9fb8e988ff.tar.gz
Mechanically convert to if_inc_counter().
Diffstat (limited to 'sys/mips/adm5120')
-rw-r--r--sys/mips/adm5120/if_admsw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/mips/adm5120/if_admsw.c b/sys/mips/adm5120/if_admsw.c
index b069015..11f96b5 100644
--- a/sys/mips/adm5120/if_admsw.c
+++ b/sys/mips/adm5120/if_admsw.c
@@ -925,7 +925,7 @@ admsw_txintr(struct admsw_softc *sc, int prio)
gotone = 1;
/* printf("clear tx slot %d\n",i); */
- ifp->if_opackets++;
+ if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);
sc->sc_txfree++;
}
@@ -1047,7 +1047,7 @@ admsw_rxintr(struct admsw_softc *sc, int high)
m = ds->ds_mbuf;
if (admsw_add_rxlbuf(sc, i) != 0) {
- ifp->if_ierrors++;
+ if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
ADMSW_INIT_RXLDESC(sc, i);
bus_dmamap_sync(sc->sc_bufs_dmat, ds->ds_dmamap,
BUS_DMASYNC_PREREAD);
@@ -1066,7 +1066,7 @@ admsw_rxintr(struct admsw_softc *sc, int high)
/* Pass it on. */
(*ifp->if_input)(ifp, m);
- ifp->if_ipackets++;
+ if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
}
/* Update the receive pointer. */
OpenPOWER on IntegriCloud