summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-08-07 03:42:15 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-08-07 03:42:15 +0000
commitf4c21741ef280f28d5c806d106644d253ed9fe81 (patch)
tree799e5bf5dbcc7f03ffd2395939280e069c367dfb
parentc4b5c6691330623d511e7dbab4b409e51571af12 (diff)
Hrmph, part of the logic was correct: turn off if_timer when all descriptors are found to be empty.
-rw-r--r--sys/dev/ic/hme.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c
index e1b34fdbd8c..eb3c7149417 100644
--- a/sys/dev/ic/hme.c
+++ b/sys/dev/ic/hme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hme.c,v 1.18 2002/08/07 00:30:39 jason Exp $ */
+/* $OpenBSD: hme.c,v 1.19 2002/08/07 03:42:14 jason Exp $ */
/* $NetBSD: hme.c,v 1.21 2001/07/07 15:59:37 thorpej Exp $ */
/*-
@@ -714,10 +714,9 @@ hme_tint(sc)
--cnt;
}
- if (cnt != sc->sc_tx_cnt) {
+ sc->sc_tx_cnt = cnt;
+ if (cnt == 0)
ifp->if_timer = 0;
- sc->sc_tx_cnt = cnt;
- }
/* Update ring */
sc->sc_tx_cons = ri;