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.
This commit is contained in:
julian 2004-03-02 05:43:42 +00:00
parent ae9f26fffc
commit 3119ae0df5

View File

@ -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;
}