diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2013-06-06 00:05:31 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2013-06-06 00:05:31 +0000 |
commit | 2424e6ec93c811776df91db1be5a139e5965dba8 (patch) | |
tree | b0bf28491398bb0e0ec2443867eb9c7244718a86 /sys | |
parent | 2ed8dbc6a7f4008a0c24b5218993aea44051d01a (diff) |
dont count rx ring overruns as input errors. with MCLGETI controlling the
ring we expect to run out of rx descriptors as a matter of course, its not
an error.
ok mikeb@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_bge.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 05bfaa4c5b1..33b1acabf58 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.333 2013/06/04 09:47:25 mikeb Exp $ */ +/* $OpenBSD: if_bge.c,v 1.334 2013/06/06 00:05:30 dlg Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -3641,8 +3641,7 @@ bge_stats_update_regs(struct bge_softc *sc) sc->bge_rx_inerrors += CSR_READ_4(sc, BGE_RXLP_LOCSTAT_IFIN_ERRORS); ifp->if_collisions = sc->bge_tx_collisions; - ifp->if_ierrors = sc->bge_rx_discards + sc->bge_rx_inerrors + - sc->bge_rx_overruns; + ifp->if_ierrors = sc->bge_rx_discards + sc->bge_rx_inerrors; } void @@ -3660,7 +3659,6 @@ bge_stats_update(struct bge_softc *sc) sc->bge_tx_collisions = cnt; cnt = READ_STAT(sc, stats, nicNoMoreRxBDs.bge_addr_lo); - ifp->if_ierrors += (uint32_t)(cnt - sc->bge_rx_overruns); sc->bge_rx_overruns = cnt; cnt = READ_STAT(sc, stats, ifInErrors.bge_addr_lo); ifp->if_ierrors += (uint32_t)(cnt - sc->bge_rx_inerrors); |