diff options
author | glebius <glebius@FreeBSD.org> | 2012-10-18 09:57:56 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-10-18 09:57:56 +0000 |
commit | 7bdf4320f7c2d8ca6084f726ec0efe507bacf9ae (patch) | |
tree | 92dab0848fa3d1e9d3b8bbae768dcfc2f62ded60 /sys/net | |
parent | 5427f0b2a0172729f289b024c029b6a29dfb24c3 (diff) | |
download | FreeBSD-src-7bdf4320f7c2d8ca6084f726ec0efe507bacf9ae.zip FreeBSD-src-7bdf4320f7c2d8ca6084f726ec0efe507bacf9ae.tar.gz |
Utilize new macro to initialize if_baudrate().
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_epair.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_epair.c b/sys/net/if_epair.c index 0a2d2bc..42a8a7a 100644 --- a/sys/net/if_epair.c +++ b/sys/net/if_epair.c @@ -823,7 +823,7 @@ epair_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) 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, char *name, size_t len, caddr_t params) 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 |