Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Oct 2010 19:24:38 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r213601 - stable/8/sys/dev/et
Message-ID:  <201010081924.o98JOcGA006153@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Fri Oct  8 19:24:38 2010
New Revision: 213601
URL: http://svn.freebsd.org/changeset/base/213601

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

Modified:
  stable/8/sys/dev/et/if_et.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/dev/et/if_et.c
==============================================================================
--- stable/8/sys/dev/et/if_et.c	Fri Oct  8 19:21:16 2010	(r213600)
+++ stable/8/sys/dev/et/if_et.c	Fri Oct  8 19:24:38 2010	(r213601)
@@ -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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010081924.o98JOcGA006153>