Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2012 09:59:50 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r241678 - head/sys/dev/bxe
Message-ID:  <201210180959.q9I9xofO008360@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Thu Oct 18 09:59:50 2012
New Revision: 241678
URL: http://svn.freebsd.org/changeset/base/241678

Log:
  Utilize new macro to initialize if_baudrate.

Modified:
  head/sys/dev/bxe/if_bxe.c

Modified: head/sys/dev/bxe/if_bxe.c
==============================================================================
--- head/sys/dev/bxe/if_bxe.c	Thu Oct 18 09:57:56 2012	(r241677)
+++ head/sys/dev/bxe/if_bxe.c	Thu Oct 18 09:59:50 2012	(r241678)
@@ -2140,7 +2140,7 @@ bxe_attach(device_t dev)
 	ifp->if_capabilities = BXE_IF_CAPABILITIES;
 	/* TPA not enabled by default. */
 	ifp->if_capenable = BXE_IF_CAPABILITIES & ~IFCAP_LRO;
-	ifp->if_baudrate = IF_Gbps(10UL);
+	if_initbaudrate(ifp, IF_Gbps(10));
 
 	ifp->if_snd.ifq_drv_maxlen = sc->tx_ring_size;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210180959.q9I9xofO008360>