From 4b811dc90fe1912db5ab3e5dc5df0257bd96033c Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Tue, 23 Dec 2008 07:40:32 +0000 Subject: allow us to completely exhaust the rx ring now that we handle the RXO (rx overflow) interrupt. Yes deraadt@ --- sys/dev/pci/if_em.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/if_em.c') diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index eb2fce0ae6a..d83e3471a9e 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_em.c,v 1.205 2008/12/21 23:32:51 dlg Exp $ */ +/* $OpenBSD: if_em.c,v 1.206 2008/12/23 07:40:31 dlg Exp $ */ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ #include @@ -2644,7 +2644,7 @@ em_rxeof(struct em_softc *sc, int count) i = sc->next_rx_desc_to_check; - while (count != 0 && sc->rx_ndescs > 1) { + while (count != 0 && sc->rx_ndescs > 0) { m = NULL; desc = &sc->rx_desc_base[i]; -- cgit v1.2.3