diff options
author | yongari <yongari@FreeBSD.org> | 2010-09-21 17:31:14 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2010-09-21 17:31:14 +0000 |
commit | 506226a8f9b1803546677a06aadcdf7aadd8f967 (patch) | |
tree | b2b3b0ed47522c40eb947f48c574f141f6af061f /sys | |
parent | 84e48d7980ff3f41607bb135b13b68b581bc1f0b (diff) | |
download | FreeBSD-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.c | 2 |
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); } |