summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2010-09-21 17:31:14 +0000
committeryongari <yongari@FreeBSD.org>2010-09-21 17:31:14 +0000
commit506226a8f9b1803546677a06aadcdf7aadd8f967 (patch)
treeb2b3b0ed47522c40eb947f48c574f141f6af061f /sys
parent84e48d7980ff3f41607bb135b13b68b581bc1f0b (diff)
downloadFreeBSD-src-506226a8f9b1803546677a06aadcdf7aadd8f967.zip
FreeBSD-src-506226a8f9b1803546677a06aadcdf7aadd8f967.tar.gz
Make sure to clear IFF_DRV_RUNNING to reinitialize controller.
While I'm here update if_oerrors counter when driver encounters watchdog timeout.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/et/if_et.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/et/if_et.c b/sys/dev/et/if_et.c
index e6a2163..0d0ed56 100644
--- a/sys/dev/et/if_et.c
+++ b/sys/dev/et/if_et.c
@@ -1320,6 +1320,8 @@ et_watchdog(struct et_softc *sc)
if_printf(sc->ifp, "watchdog timed out\n");
+ sc->ifp->if_oerrors++;
+ sc->ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
et_init_locked(sc);
et_start_locked(sc->ifp);
}
OpenPOWER on IntegriCloud