Module Name:    src
Committed By:   skrll
Date:           Tue Feb  4 07:36:04 UTC 2020

Modified Files:
        src/sys/arch/evbppc/virtex/dev: if_temac.c

Log Message:
Adopt <net/if_stats.h>


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/evbppc/virtex/dev/if_temac.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/evbppc/virtex/dev/if_temac.c
diff -u src/sys/arch/evbppc/virtex/dev/if_temac.c:1.15 src/sys/arch/evbppc/virtex/dev/if_temac.c:1.16
--- src/sys/arch/evbppc/virtex/dev/if_temac.c:1.15	Wed May 29 06:21:57 2019
+++ src/sys/arch/evbppc/virtex/dev/if_temac.c	Tue Feb  4 07:36:04 2020
@@ -1,4 +1,4 @@
-/* 	$NetBSD: if_temac.c,v 1.15 2019/05/29 06:21:57 msaitoh Exp $ */
+/* 	$NetBSD: if_temac.c,v 1.16 2020/02/04 07:36:04 skrll Exp $ */
 
 /*
  * Copyright (c) 2006 Jachym Holecek
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_temac.c,v 1.15 2019/05/29 06:21:57 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_temac.c,v 1.16 2020/02/04 07:36:04 skrll Exp $");
 
 
 #include <sys/param.h>
@@ -1212,7 +1212,7 @@ temac_rxreap(struct temac_softc *sc)
 			    (TEMAC_ISINTR(tail) ? CDMAC_STAT_INTR : 0) |
 			    (TEMAC_ISLAST(tail) ? CDMAC_STAT_STOP : 0);
 
-			ifp->if_ierrors++;
+			if_statinc(ifp, if_ierrors);
 			continue;
  		}
 

Reply via email to