svn commit: r231509 - head/sys/dev/oce
Bjoern A. Zeeb
bz at FreeBSD.org
Sat Feb 11 07:47:07 UTC 2012
Author: bz
Date: Sat Feb 11 07:47:06 2012
New Revision: 231509
URL: http://svn.freebsd.org/changeset/base/231509
Log:
Use the more common macro to set the if_baudrate to 10Gbit/s. Just use
UL not ULL, which should make 32bit archs more happy.
Modified:
head/sys/dev/oce/oce_if.c
Modified: head/sys/dev/oce/oce_if.c
==============================================================================
--- head/sys/dev/oce/oce_if.c Sat Feb 11 07:43:33 2012 (r231508)
+++ head/sys/dev/oce/oce_if.c Sat Feb 11 07:47:06 2012 (r231509)
@@ -1644,7 +1644,7 @@ oce_attach_ifp(POCE_SOFTC sc)
sc->ifp->if_capabilities |= IFCAP_LRO;
sc->ifp->if_capenable = sc->ifp->if_capabilities;
- sc->ifp->if_baudrate = IF_Mbps(10000ULL);
+ sc->ifp->if_baudrate = IF_Gbps(10UL);
ether_ifattach(sc->ifp, sc->macaddr.mac_addr);
More information about the svn-src-all
mailing list