summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_em.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2008-12-23 07:40:32 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2008-12-23 07:40:32 +0000
commit4b811dc90fe1912db5ab3e5dc5df0257bd96033c (patch)
treee5b5c05513cd7499747519b607a74b6d9855bb34 /sys/dev/pci/if_em.c
parent900a32c65e74f499ea2789ddcfebcace17f6478c (diff)
allow us to completely exhaust the rx ring now that we handle the RXO (rx
overflow) interrupt. Yes deraadt@
Diffstat (limited to 'sys/dev/pci/if_em.c')
-rw-r--r--sys/dev/pci/if_em.c4
1 files changed, 2 insertions, 2 deletions
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 <dev/pci/if_em.h>
@@ -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];