From owner-svn-src-stable-10@FreeBSD.ORG Tue Jun 23 22:31:04 2015 Return-Path: Delivered-To: svn-src-stable-10@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D89DB93A; Tue, 23 Jun 2015 22:31:04 +0000 (UTC) (envelope-from gallatin@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C3CD9F53; Tue, 23 Jun 2015 22:31:04 +0000 (UTC) (envelope-from gallatin@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5NMV4Pb014892; Tue, 23 Jun 2015 22:31:04 GMT (envelope-from gallatin@FreeBSD.org) Received: (from gallatin@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t5NMV4he014891; Tue, 23 Jun 2015 22:31:04 GMT (envelope-from gallatin@FreeBSD.org) Message-Id: <201506232231.t5NMV4he014891@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: gallatin set sender to gallatin@FreeBSD.org using -f From: Andrew Gallatin Date: Tue, 23 Jun 2015 22:31:04 +0000 (UTC) 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 X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-10@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for only the 10-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2015 22:31:05 -0000 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;