Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Don't increment when ICR_RXO is set because we c...



details:   https://anonhg.NetBSD.org/src/rev/ad050c968a87
branches:  trunk
changeset: 751445:ad050c968a87
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Feb 04 10:20:54 2010 +0000

description:
Don't increment when ICR_RXO is set because we count them by WMREG_MPC
counter.

diffstat:

 sys/dev/pci/if_wm.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 25ccd1085dea -r ad050c968a87 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Thu Feb 04 09:48:35 2010 +0000
+++ b/sys/dev/pci/if_wm.c       Thu Feb 04 10:20:54 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.196 2010/02/04 09:13:23 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.197 2010/02/04 10:20:54 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.196 2010/02/04 09:13:23 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.197 2010/02/04 10:20:54 msaitoh Exp $");
 
 #include "rnd.h"
 
@@ -2595,7 +2595,6 @@
                }
 
                if (icr & ICR_RXO) {
-                       ifp->if_ierrors++;
 #if defined(WM_DEBUG)
                        log(LOG_WARNING, "%s: Receive overrun\n",
                            device_xname(sc->sc_dev));



Home | Main Index | Thread Index | Old Index