diff options
-rw-r--r-- | sys/arch/sparc/dev/hme.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c index 7abf42bd3f2..c5cce2bc715 100644 --- a/sys/arch/sparc/dev/hme.c +++ b/sys/arch/sparc/dev/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.22 2000/06/18 17:37:02 jason Exp $ */ +/* $OpenBSD: hme.c,v 1.23 2000/06/18 17:42:18 jason Exp $ */ /* * Copyright (c) 1998 Jason L. Wright (jason@thought.net) @@ -281,7 +281,7 @@ hmestart(ifp) for (;;) { IF_DEQUEUE(&ifp->if_snd, m); - if (m == 0) + if (m == NULL) break; #if NBPFILTER > 0 /* @@ -762,7 +762,10 @@ hme_eint(sc, why) struct hme_softc *sc; u_int32_t why; { - if (why & GR_STAT_ALL_ERRORS) { + if (why & GR_STAT_NORXD) + sc->sc_arpcom.ac_if.if_ierrors++; + + if (why & (GR_STAT_ALL_ERRORS & (~GR_STAT_NORXD))) { printf("%s: stat=%b, resetting.\n", sc->sc_dev.dv_xname, why, GR_STAT_BITS); hmereset(sc); |