summaryrefslogtreecommitdiffstats
path: root/sys/dev/bfe
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-03-02 05:43:42 +0000
committerjulian <julian@FreeBSD.org>2004-03-02 05:43:42 +0000
commit3119ae0df56b10d7996834ccd981e037a55cc92a (patch)
tree77c4b5f4b47237dc8a3195d03dad62eb3ec30291 /sys/dev/bfe
parentae9f26fffcb781f5fca64afc7aa3e91337c908fa (diff)
downloadFreeBSD-src-3119ae0df56b10d7996834ccd981e037a55cc92a.zip
FreeBSD-src-3119ae0df56b10d7996834ccd981e037a55cc92a.tar.gz
When we get a packet error, move on, don't go into an infinite loop
looking at it. fixes at least one cause of "hanging" due to this driver.
Diffstat (limited to 'sys/dev/bfe')
-rw-r--r--sys/dev/bfe/if_bfe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c
index 0940b27..bc989b6 100644
--- a/sys/dev/bfe/if_bfe.c
+++ b/sys/dev/bfe/if_bfe.c
@@ -1169,6 +1169,7 @@ bfe_rxeof(struct bfe_softc *sc)
if (flags & BFE_RX_FLAG_SERR)
ifp->if_collisions++;
bfe_list_newbuf(sc, cons, m);
+ BFE_INC(cons, BFE_RX_LIST_CNT);
continue;
}
@@ -1179,6 +1180,7 @@ bfe_rxeof(struct bfe_softc *sc)
} else {
bfe_list_newbuf(sc, cons, m);
ifp->if_ierrors++;
+ BFE_INC(cons, BFE_RX_LIST_CNT);
continue;
}
OpenPOWER on IntegriCloud