Subject: kern/29831: interface reset on rx ring overrun
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 03/30/2005 02:41:01
>Number: 29831
>Category: kern
>Synopsis: interface reset on rx ring overrun
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Mar 30 02:41:00 +0000 2005
>Originator: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release: NetBSD 3.99.1
>Organization:
>Environment:
System: NetBSD kaeru 3.99.1 NetBSD 3.99.1 (build.kaeru) #304: Tue Mar 29 13:54:14 JST 2005 takashi@kaeru:/home/takashi/work/kernel/build.kaeru i386
Architecture: i386
Machine: i386
>Description:
some drivers including wm(4) reset the interface on rx ring overrun.
it just makes the situation worse, if the overrun is merely a symptom
of too heavy load.
>How-To-Repeat:
>Fix:
Index: if_wm.c
===================================================================
--- if_wm.c (revision 1095)
+++ if_wm.c (working copy)
@@ -2042,11 +2044,13 @@ wm_intr(void *arg)
wm_linkintr(sc, icr);
}
+#if 0
if (icr & ICR_RXO) {
log(LOG_WARNING, "%s: Receive overrun\n",
sc->sc_dev.dv_xname);
wantinit = 1;
}
+#endif
}
if (handled) {
@@ -2709,7 +2713,7 @@ wm_init(struct ifnet *ifp)
*/
CSR_WRITE(sc, WMREG_IMC, 0xffffffffU);
sc->sc_icr = ICR_TXDW | ICR_LSC | ICR_RXSEQ | ICR_RXDMT0 |
- ICR_RXO | ICR_RXT0;
+ /* ICR_RXO | */ ICR_RXT0;
if ((sc->sc_flags & WM_F_HAS_MII) == 0)
sc->sc_icr |= ICR_RXCFG;
CSR_WRITE(sc, WMREG_IMS, sc->sc_icr);
>Unformatted: