svn commit: r241677 - head/sys/net
Gleb Smirnoff
glebius at FreeBSD.org
Thu Oct 18 09:57:57 UTC 2012
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
More information about the svn-src-head
mailing list