Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Nov 2010 01:00:39 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215963 - head/sys/dev/usb/net
Message-ID:  <201011280100.oAS10dCk027736@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Sun Nov 28 01:00:39 2010
New Revision: 215963
URL: http://svn.freebsd.org/changeset/base/215963

Log:
  Do not reinitialize controller if it's already running.

Modified:
  head/sys/dev/usb/net/if_axe.c

Modified: head/sys/dev/usb/net/if_axe.c
==============================================================================
--- head/sys/dev/usb/net/if_axe.c	Sun Nov 28 00:57:48 2010	(r215962)
+++ head/sys/dev/usb/net/if_axe.c	Sun Nov 28 01:00:39 2010	(r215963)
@@ -1019,6 +1019,9 @@ axe_init(struct usb_ether *ue)
 
 	AXE_LOCK_ASSERT(sc, MA_OWNED);
 
+	if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0)
+		return;
+
 	/* Cancel pending I/O */
 	axe_stop(ue);
 



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