diff options
author | julian <julian@FreeBSD.org> | 2004-03-02 05:43:42 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-03-02 05:43:42 +0000 |
commit | 3119ae0df56b10d7996834ccd981e037a55cc92a (patch) | |
tree | 77c4b5f4b47237dc8a3195d03dad62eb3ec30291 | |
parent | ae9f26fffcb781f5fca64afc7aa3e91337c908fa (diff) | |
download | FreeBSD-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.
-rw-r--r-- | sys/dev/bfe/if_bfe.c | 2 |
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; } |