diff options
author | gallatin <gallatin@FreeBSD.org> | 2015-06-23 22:31:04 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2015-06-23 22:31:04 +0000 |
commit | 00b69b27e869eb2ea22e57a5f3b57763c115b646 (patch) | |
tree | 3fc3facc213a7c93fce15644ea33a914388620a1 /sys | |
parent | ae7c0e046118846e8deed771294aab6ae421a9ec (diff) | |
download | FreeBSD-src-00b69b27e869eb2ea22e57a5f3b57763c115b646.zip FreeBSD-src-00b69b27e869eb2ea22e57a5f3b57763c115b646.tar.gz |
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
Diffstat (limited to 'sys')
-rwxr-xr-x | sys/dev/ixl/if_ixl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ixl/if_ixl.c b/sys/dev/ixl/if_ixl.c index ed87f1f..94186bb 100755 --- a/sys/dev/ixl/if_ixl.c +++ b/sys/dev/ixl/if_ixl.c @@ -2324,7 +2324,7 @@ ixl_setup_interface(device_t dev, struct ixl_vsi *vsi) } 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; |