Date: Mon, 19 Jul 2010 22:28:08 +0000 (UTC) From: Juli Mallett <jmallett@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r210266 - user/jmallett/octeon/sys/mips/cavium/octe Message-ID: <201007192228.o6JMS8ee001443@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007192228.o6JMS8ee001443>