Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2012 09:57:56 +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: r241677 - head/sys/net
Message-ID:  <201210180957.q9I9vuBh007964@svn.freebsd.org>

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

Log:
  Utilize new macro to initialize if_baudrate().

Modified:
  head/sys/net/if_epair.c

Modified: head/sys/net/if_epair.c
==============================================================================
--- head/sys/net/if_epair.c	Thu Oct 18 09:56:14 2012	(r241676)
+++ head/sys/net/if_epair.c	Thu Oct 18 09:57:56 2012	(r241677)
@@ -823,7 +823,7 @@ epair_clone_create(struct if_clone *ifc,
 	sca->if_qflush = ifp->if_qflush;
 	ifp->if_qflush = epair_qflush;
 	ifp->if_transmit = epair_transmit;
-	ifp->if_baudrate = IF_Gbps(10UL);	/* arbitrary maximum */
+	if_initbaudrate(ifp, IF_Gbps(10));	/* arbitrary maximum */
 
 	/* Swap the name and finish initialization of interface <n>b. */
 	*dp = 'b';
@@ -849,7 +849,7 @@ epair_clone_create(struct if_clone *ifc,
 	scb->if_qflush = ifp->if_qflush;
 	ifp->if_qflush = epair_qflush;
 	ifp->if_transmit = epair_transmit;
-	ifp->if_baudrate = IF_Gbps(10UL);	/* arbitrary maximum */
+	if_initbaudrate(ifp, IF_Gbps(10));	/* arbitrary maximum */
 
 	/*
 	 * Restore name to <n>a as the ifp for this will go into the



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