summaryrefslogtreecommitdiff
path: root/sys/dev/ic/hme.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-11-26 01:08:19 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-11-26 01:08:19 +0000
commitb1e77718707e10a0c0765dcf39e3e0299a0abbb1 (patch)
tree6d7296dcc7d6ce2540e884120c60ee138706d469 /sys/dev/ic/hme.c
parent6e34af6845f853564bb8caf7777e4661efd210f2 (diff)
re-enable if_timer; jason@ ok.
Diffstat (limited to 'sys/dev/ic/hme.c')
-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 39539b7e9f7..c8210d5fdb0 100644
--- a/sys/dev/ic/hme.c
+++ b/sys/dev/ic/hme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hme.c,v 1.22 2002/11/20 22:06:45 jason Exp $ */
+/* $OpenBSD: hme.c,v 1.23 2002/11/26 01:08:18 fgsch Exp $ */
/* $NetBSD: hme.c,v 1.21 2001/07/07 15:59:37 thorpej Exp $ */
/*-
@@ -662,7 +662,7 @@ hme_start(ifp)
if (cnt != 0) {
sc->sc_tx_prod = bix;
- ifp->if_timer = 0;
+ ifp->if_timer = 5;
}
}
@@ -715,8 +715,7 @@ hme_tint(sc)
}
sc->sc_tx_cnt = cnt;
- if (cnt == 0)
- ifp->if_timer = 0;
+ ifp->if_timer = cnt > 0 ? 5 : 0;
/* Update ring */
sc->sc_tx_cons = ri;