Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2016 06:26:34 +0000 (UTC)
From:      Sepherosa Ziehau <sephe@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: r308507 - stable/10/sys/dev/hyperv/netvsc
Message-ID:  <201611110626.uAB6QYRb062585@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sephe
Date: Fri Nov 11 06:26:34 2016
New Revision: 308507
URL: https://svnweb.freebsd.org/changeset/base/308507

Log:
  hyperv/hn: Fix i386 build; if_baudrate is 32bits on i386 on stable/10
  
  This is a direct commit.
  
  Sponsored by:	Microsoft

Modified:
  stable/10/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c

Modified: stable/10/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
==============================================================================
--- stable/10/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c	Fri Nov 11 06:23:01 2016	(r308506)
+++ stable/10/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c	Fri Nov 11 06:26:34 2016	(r308507)
@@ -867,7 +867,12 @@ netvsc_attach(device_t dev)
 	 * Setup the ifnet for this interface.
 	 */
 
+#ifdef __LP64__
 	ifp->if_baudrate = IF_Gbps(10);
+#else
+	/* if_baudrate is 32bits on 32bit system. */
+	ifp->if_baudrate = IF_Gbps(1);
+#endif
 	ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
 	ifp->if_ioctl = hn_ioctl;
 	ifp->if_init = hn_init;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611110626.uAB6QYRb062585>