From b1e77718707e10a0c0765dcf39e3e0299a0abbb1 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Tue, 26 Nov 2002 01:08:19 +0000 Subject: re-enable if_timer; jason@ ok. --- sys/dev/ic/hme.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/dev') 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; -- cgit v1.2.3