svn commit: r284742 - stable/10/sys/dev/ixl
Andrew Gallatin
gallatin at FreeBSD.org
Tue Jun 23 22:31:05 UTC 2015
Author: gallatin
Date: Tue Jun 23 22:31:04 2015
New Revision: 284742
URL: https://svnweb.freebsd.org/changeset/base/284742
Log:
Fix r284612: As pointed out by jhb, in stable branches, if_baudrate
is 32b on 32b platforms. So rather than a simple MFC of r284612,
we need to use if_initbaudrate() to properly express a 40Gb speed.
Spotted by: jhb
Sponsored by: Netflix
Modified:
stable/10/sys/dev/ixl/if_ixl.c
Modified: stable/10/sys/dev/ixl/if_ixl.c
==============================================================================
--- stable/10/sys/dev/ixl/if_ixl.c Tue Jun 23 22:22:36 2015 (r284741)
+++ stable/10/sys/dev/ixl/if_ixl.c Tue Jun 23 22:31:04 2015 (r284742)
@@ -2324,7 +2324,7 @@ ixl_setup_interface(device_t dev, struct
}
if_initname(ifp, device_get_name(dev), device_get_unit(dev));
ifp->if_mtu = ETHERMTU;
- ifp->if_baudrate = IF_Gbps(40);
+ if_initbaudrate(ifp, IF_Gbps(40));
ifp->if_init = ixl_init;
ifp->if_softc = vsi;
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
More information about the svn-src-all
mailing list