From 3119ae0df56b10d7996834ccd981e037a55cc92a Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 2 Mar 2004 05:43:42 +0000 Subject: 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. --- sys/dev/bfe/if_bfe.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/bfe') 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; } -- cgit v1.1