From 8fc8ef2efec4184af2f5e149922a267cb7ab5e03 Mon Sep 17 00:00:00 2001 From: Julian Elischer 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 0940b2706f08..bc989b60db7b 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.3