diff options
author | 2009-12-09 17:13:02 +0000 | |
---|---|---|
committer | 2009-12-09 17:13:02 +0000 | |
commit | 2f7799547ca22ade64bdef0da73aa9e816829a6b (patch) | |
tree | e1710b21b8bda91d87f1f34a077d606b3c13ab4e /sys/dev/pci/if_bge.c | |
parent | sync (diff) | |
download | wireguard-openbsd-2f7799547ca22ade64bdef0da73aa9e816829a6b.tar.xz wireguard-openbsd-2f7799547ca22ade64bdef0da73aa9e816829a6b.zip |
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 occurred.
From FreeBSD via Brad
Diffstat (limited to 'sys/dev/pci/if_bge.c')
-rw-r--r-- | sys/dev/pci/if_bge.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 1f106345681..cf42f76556b 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.287 2009/11/30 19:08:01 kettenis Exp $ */ +/* $OpenBSD: if_bge.c,v 1.288 2009/12/09 17:13:02 naddy Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -2536,7 +2536,6 @@ bge_rxeof(struct bge_softc *sc) if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) { m_freem(m); - ifp->if_ierrors++; continue; } } else { @@ -2553,7 +2552,6 @@ bge_rxeof(struct bge_softc *sc) if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) { m_freem(m); - ifp->if_ierrors++; continue; } } |