diff options
author | 2002-11-14 17:20:52 +0000 | |
---|---|---|
committer | 2002-11-14 17:20:52 +0000 | |
commit | 4990df7b3dd5fa9bbcce1357c8cebeda35249560 (patch) | |
tree | 01c5d2fe858f762830fb7b62b7ea0d7f3888e38d | |
parent | Use %d instead of %2d for better matching. From Mike Neuman. Fixes PR#2848. (diff) | |
download | wireguard-openbsd-4990df7b3dd5fa9bbcce1357c8cebeda35249560.tar.xz wireguard-openbsd-4990df7b3dd5fa9bbcce1357c8cebeda35249560.zip |
Don't complain about the defer timer expiring, call it an oerror instead.
-rw-r--r-- | sys/dev/ic/hme.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c index e055d2c14de..8a3c2aab5db 100644 --- a/sys/dev/ic/hme.c +++ b/sys/dev/ic/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.20 2002/09/28 02:04:44 jason Exp $ */ +/* $OpenBSD: hme.c,v 1.21 2002/11/14 17:20:52 jason Exp $ */ /* $NetBSD: hme.c,v 1.21 2001/07/07 15:59:37 thorpej Exp $ */ /*- @@ -801,11 +801,21 @@ hme_eint(sc, status) struct hme_softc *sc; u_int status; { - if ((status & HME_SEB_STAT_MIFIRQ) != 0) { + struct ifnet *ifp = &sc->sc_arpcom.ac_if; + + if (status & HME_SEB_STAT_MIFIRQ) { printf("%s: XXXlink status changed\n", sc->sc_dev.dv_xname); - return (1); + status &= ~HME_SEB_STAT_MIFIRQ; } + if (status & HME_SEB_STAT_DTIMEXP) { + ifp->if_oerrors++; + status &= ~HME_SEB_STAT_DTIMEXP; + } + + if (status == 0) + return (1); + printf("%s: status=%b\n", sc->sc_dev.dv_xname, status, HME_SEB_STAT_BITS); return (1); } @@ -842,7 +852,7 @@ hme_watchdog(ifp) struct hme_softc *sc = ifp->if_softc; log(LOG_ERR, "%s: device timeout\n", sc->sc_dev.dv_xname); - ++ifp->if_oerrors; + ifp->if_oerrors++; hme_reset(sc); } |