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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to