From owner-svn-src-head@FreeBSD.ORG Thu Oct 18 13:57:28 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DBC3FE18; Thu, 18 Oct 2012 13:57:28 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C3AB38FC16; Thu, 18 Oct 2012 13:57:28 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9IDvSfw051740; Thu, 18 Oct 2012 13:57:28 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9IDvSrU051738; Thu, 18 Oct 2012 13:57:28 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201210181357.q9IDvSrU051738@svn.freebsd.org> From: Gleb Smirnoff Date: Thu, 18 Oct 2012 13:57:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r241687 - head/sys/dev/mxge X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2012 13:57:28 -0000 Author: glebius Date: Thu Oct 18 13:57:28 2012 New Revision: 241687 URL: http://svn.freebsd.org/changeset/base/241687 Log: Utilize new macro to initialize if_baudrate. Modified: head/sys/dev/mxge/if_mxge.c Modified: head/sys/dev/mxge/if_mxge.c ============================================================================== --- head/sys/dev/mxge/if_mxge.c Thu Oct 18 13:57:24 2012 (r241686) +++ head/sys/dev/mxge/if_mxge.c Thu Oct 18 13:57:28 2012 (r241687) @@ -3017,7 +3017,7 @@ mxge_intr(void *arg) sc->link_state = stats->link_up; if (sc->link_state) { if_link_state_change(sc->ifp, LINK_STATE_UP); - sc->ifp->if_baudrate = IF_Gbps(10UL); + if_initbaudrate(sc->ifp, IF_Gbps(10)); if (mxge_verbose) device_printf(sc->dev, "link up\n"); } else { @@ -4773,7 +4773,7 @@ mxge_attach(device_t dev) goto abort_with_rings; } - ifp->if_baudrate = IF_Gbps(10UL); + if_initbaudrate(ifp, IF_Gbps(10)); ifp->if_capabilities = IFCAP_RXCSUM | IFCAP_TXCSUM | IFCAP_TSO4 | IFCAP_VLAN_MTU | IFCAP_LINKSTATE; #ifdef INET