Date: Sat, 11 Feb 2012 07:47:07 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r231509 - head/sys/dev/oce Message-ID: <201202110747.q1B7l7ga019376@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202110747.q1B7l7ga019376>