diff options
author | 2002-08-07 03:42:14 +0000 | |
---|---|---|
committer | 2002-08-07 03:42:14 +0000 | |
commit | 470c13484f5c8de7ea3346d27b5736a3991fbf41 (patch) | |
tree | 98cad745331e5a584debc6c5db03c8c51c022fb6 | |
parent | typo (diff) | |
download | wireguard-openbsd-470c13484f5c8de7ea3346d27b5736a3991fbf41.tar.xz wireguard-openbsd-470c13484f5c8de7ea3346d27b5736a3991fbf41.zip |
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.c | 7 |
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; |