svn commit: r212969 - head/sys/dev/et

Pyun YongHyeon yongari at FreeBSD.org
Tue Sep 21 17:31:15 UTC 2010


Author: yongari
Date: Tue Sep 21 17:31:14 2010
New Revision: 212969
URL: http://svn.freebsd.org/changeset/base/212969

Log:
  Make sure to clear IFF_DRV_RUNNING to reinitialize controller.
  While I'm here update if_oerrors counter when driver encounters
  watchdog timeout.

Modified:
  head/sys/dev/et/if_et.c

Modified: head/sys/dev/et/if_et.c
==============================================================================
--- head/sys/dev/et/if_et.c	Tue Sep 21 17:25:15 2010	(r212968)
+++ head/sys/dev/et/if_et.c	Tue Sep 21 17:31:14 2010	(r212969)
@@ -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);
 }


More information about the svn-src-head mailing list