From owner-svn-src-user@FreeBSD.ORG Mon Jul 19 22:28:08 2010 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 404E71065673; Mon, 19 Jul 2010 22:28:08 +0000 (UTC) (envelope-from jmallett@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3344F8FC15; Mon, 19 Jul 2010 22:28:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o6JMS8Ra001444; Mon, 19 Jul 2010 22:28:08 GMT (envelope-from jmallett@svn.freebsd.org) Received: (from jmallett@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o6JMS8ee001443; Mon, 19 Jul 2010 22:28:08 GMT (envelope-from jmallett@svn.freebsd.org) Message-Id: <201007192228.o6JMS8ee001443@svn.freebsd.org> From: Juli Mallett Date: Mon, 19 Jul 2010 22:28:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210266 - user/jmallett/octeon/sys/mips/cavium/octe X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2010 22:28:08 -0000 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));