Date: Tue, 23 Jun 2015 22:31:04 +0000 (UTC) From: Andrew Gallatin <gallatin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r284742 - stable/10/sys/dev/ixl Message-ID: <201506232231.t5NMV4he014891@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506232231.t5NMV4he014891>