Module Name: src
Committed By: skrll
Date: Mon Feb 3 13:53:57 UTC 2020
Modified Files:
src/sys/arch/arm/ep93xx: epe.c
Log Message:
Adopt <net/if_stats.h>
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/arm/ep93xx/epe.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/ep93xx/epe.c
diff -u src/sys/arch/arm/ep93xx/epe.c:1.45 src/sys/arch/arm/ep93xx/epe.c:1.46
--- src/sys/arch/arm/ep93xx/epe.c:1.45 Mon Oct 21 08:22:06 2019
+++ src/sys/arch/arm/ep93xx/epe.c Mon Feb 3 13:53:57 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: epe.c,v 1.45 2019/10/21 08:22:06 msaitoh Exp $ */
+/* $NetBSD: epe.c,v 1.46 2020/02/03 13:53:57 skrll Exp $ */
/*
* Copyright (c) 2004 Jesse Off
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: epe.c,v 1.45 2019/10/21 08:22:06 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: epe.c,v 1.46 2020/02/03 13:53:57 skrll Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -172,7 +172,7 @@ epe_gctx(struct epe_softc *sc)
struct mbuf *m = sc->txq[tbi].m;
if ((*sc->TXStsQ_cur & TXStsQ_TxWE) == 0)
- ifp->if_oerrors++;
+ if_statinc(ifp, if_oerrors);
bus_dmamap_unload(sc->sc_dmat, sc->txq[tbi].m_dmamap);
m_freem(m);
@@ -182,7 +182,7 @@ epe_gctx(struct epe_softc *sc)
tbi = (tbi + 1) % TX_QLEN;
} while (sc->txq[tbi].m == m);
- ifp->if_opackets++;
+ if_statinc(ifp, if_opackets);
sc->TXStsQ_cur++;
if (sc->TXStsQ_cur >= sc->TXStsQ + TX_QLEN) {
sc->TXStsQ_cur = sc->TXStsQ;
@@ -243,10 +243,10 @@ begin:
if (m != NULL)
m_freem(m);
- ifp->if_ierrors++;
+ if_statinc(ifp, if_ierrors);
}
} else
- ifp->if_ierrors++;
+ if_statinc(ifp, if_ierrors);
ndq++;