svn commit: r215963 - head/sys/dev/usb/net

Pyun YongHyeon yongari at FreeBSD.org
Sun Nov 28 01:00:39 UTC 2010


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);
 


More information about the svn-src-head mailing list