Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/at91 More <net/if_stats.h>



details:   https://anonhg.NetBSD.org/src/rev/47cc881877cb
branches:  trunk
changeset: 1007234:47cc881877cb
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Feb 11 15:09:14 2020 +0000

description:
More <net/if_stats.h>

diffstat:

 sys/arch/arm/at91/at91emac.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 948b9b135514 -r 47cc881877cb sys/arch/arm/at91/at91emac.c
--- a/sys/arch/arm/at91/at91emac.c      Tue Feb 11 13:31:23 2020 +0000
+++ b/sys/arch/arm/at91/at91emac.c      Tue Feb 11 15:09:14 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: at91emac.c,v 1.30 2020/02/04 07:35:34 skrll Exp $      */
+/*     $NetBSD: at91emac.c,v 1.31 2020/02/11 15:09:14 skrll Exp $      */
 
 /*
  * Copyright (c) 2007 Embedtronics Oy
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: at91emac.c,v 1.30 2020/02/04 07:35:34 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: at91emac.c,v 1.31 2020/02/11 15:09:14 skrll Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -246,13 +246,13 @@
                EMAC_WRITE(ETH_RSR, ETH_RSR_BNA);       // clear BNA bit
                EMAC_WRITE(ETH_CTL, ctl |  ETH_CTL_RE); // re-enable receiver
                if_statinc(ifp, if_ierrors);
-               ifp->if_ipackets++;
+               if_statinc(ifp, if_ipackets);
                DPRINTFN(1,("%s: out of receive buffers\n", __FUNCTION__));
        }
        if (isr & ETH_ISR_ROVR) {
                EMAC_WRITE(ETH_RSR, ETH_RSR_OVR);       // clear interrupt
                if_statinc(ifp, if_ierrors);
-               ifp->if_ipackets++;
+               if_statinc(ifp, if_ipackets);
                DPRINTFN(1,("%s: receive overrun\n", __FUNCTION__));
        }
 



Home | Main Index | Thread Index | Old Index