svn commit: r210266 - user/jmallett/octeon/sys/mips/cavium/octe

Juli Mallett jmallett at FreeBSD.org
Mon Jul 19 22:28:08 UTC 2010


Author: jmallett
Date: Mon Jul 19 22:28:07 2010
New Revision: 210266
URL: http://svn.freebsd.org/changeset/base/210266

Log:
  Poll on interface init, rather than waiting for a combination of timers and
  interrupts to eventually do the poll and yield a status update such that we can
  see the link status change.
  
  This fixes problems with interfaces hanging on first configuration.

Modified:
  user/jmallett/octeon/sys/mips/cavium/octe/octe.c

Modified: user/jmallett/octeon/sys/mips/cavium/octe/octe.c
==============================================================================
--- user/jmallett/octeon/sys/mips/cavium/octe/octe.c	Mon Jul 19 21:50:43 2010	(r210265)
+++ user/jmallett/octeon/sys/mips/cavium/octe/octe.c	Mon Jul 19 22:28:07 2010	(r210266)
@@ -265,6 +265,8 @@ octe_init(void *arg)
 
 	cvm_oct_common_set_mac_address(ifp, IF_LLADDR(ifp));
 
+	if (priv->poll != NULL)
+		priv->poll(ifp);
 	if (priv->miibus != NULL)
 		mii_mediachg(device_get_softc(priv->miibus));
 


More information about the svn-src-user mailing list