summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2000-06-18 17:42:19 +0000
committerJason Wright <jason@cvs.openbsd.org>2000-06-18 17:42:19 +0000
commit2d058980b0392ad45bdcf5d2e6ab35a99070a0e0 (patch)
tree4f7108bf52178b9f9e99fbb77fe6168279c1ff7a /sys
parent97a3c375ac2b487020284d0a01e6e5dbbab156d1 (diff)
don't reset the chip on NORXD, and certainly don't print a message about it
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc/dev/hme.c9
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);