Do not count input errors twice. We always read input errors from
the MAC in bge_tick(). Previously this would result in bge(4) claiming
a greater number of input errors than what has actually occured.
>From FreeBSD
Index: if_bge.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/if_bge.c,v
retrieving revision 1.286
diff -u -p -r1.286 if_bge.c
--- if_bge.c 11 Oct 2009 16:53:13 -0000 1.286
+++ if_bge.c 11 Nov 2009 22:38:13 -0000
@@ -2521,7 +2527,6 @@ bge_rxeof(struct bge_softc *sc)
if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) {
m_freem(m);
- ifp->if_ierrors++;
continue;
}
} else {
@@ -2538,7 +2543,6 @@ bge_rxeof(struct bge_softc *sc)
if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) {
m_freem(m);
- ifp->if_ierrors++;
continue;
}
}
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.