Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/ep93xx Adopt <net/if_stats.h>



details:   https://anonhg.NetBSD.org/src/rev/5bb3bcd6ac95
branches:  trunk
changeset: 744491:5bb3bcd6ac95
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Feb 03 13:53:57 2020 +0000

description:
Adopt <net/if_stats.h>

diffstat:

 sys/arch/arm/ep93xx/epe.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (49 lines):

diff -r bd7321c6e2b0 -r 5bb3bcd6ac95 sys/arch/arm/ep93xx/epe.c
--- a/sys/arch/arm/ep93xx/epe.c Mon Feb 03 13:37:01 2020 +0000
+++ b/sys/arch/arm/ep93xx/epe.c Mon Feb 03 13:53:57 2020 +0000
@@ -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 @@
                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 @@
                        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 @@
                                if (m != NULL)
                                        m_freem(m);
 
-                               ifp->if_ierrors++;
+                               if_statinc(ifp, if_ierrors);
                        }
                } else
-                       ifp->if_ierrors++;
+                       if_statinc(ifp, if_ierrors);
 
                ndq++;
 



Home | Main Index | Thread Index | Old Index