diff options
author | 2002-11-26 01:08:18 +0000 | |
---|---|---|
committer | 2002-11-26 01:08:18 +0000 | |
commit | 4696a7f9af7d7bcdc3cb9aede028d6a03403d43f (patch) | |
tree | c95c0c7e74ec4328d06ef9ecac2d50f2083b3c31 /sys/dev/ic/hme.c | |
parent | KNF (diff) | |
download | wireguard-openbsd-4696a7f9af7d7bcdc3cb9aede028d6a03403d43f.tar.xz wireguard-openbsd-4696a7f9af7d7bcdc3cb9aede028d6a03403d43f.zip |
re-enable if_timer; jason@ ok.
Diffstat (limited to 'sys/dev/ic/hme.c')
-rw-r--r-- | sys/dev/ic/hme.c | 7 |
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; |