svn commit: r241678 - head/sys/dev/bxe

Gleb Smirnoff glebius at FreeBSD.org
Thu Oct 18 09:59:51 UTC 2012


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;
 


More information about the svn-src-head mailing list