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/7962b49f917d
branches:  trunk
changeset: 744733:7962b49f917d
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 19fc978f14c9 -r 7962b49f917d 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