Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 May 2015 16:43:21 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283069 - head/sys/boot/arm/uboot
Message-ID:  <201505181643.t4IGhLdg098062@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Mon May 18 16:43:21 2015
New Revision: 283069
URL: https://svnweb.freebsd.org/changeset/base/283069

Log:
  Enable the NETIF_OPEN_CLOSE_ONCE option for ubldr.  This keeps the network
  interface open continuously instead of closing it after each filesystem
  access and reopening it before the next (causing it to re-obtain network
  params each time).  This vastly speeds up netbooting.

Modified:
  head/sys/boot/arm/uboot/Makefile

Modified: head/sys/boot/arm/uboot/Makefile
==============================================================================
--- head/sys/boot/arm/uboot/Makefile	Mon May 18 16:28:13 2015	(r283068)
+++ head/sys/boot/arm/uboot/Makefile	Mon May 18 16:43:21 2015	(r283069)
@@ -77,6 +77,8 @@ LIBUBOOT_FDT=	${.OBJDIR}/../../uboot/fdt
 LIBFDT=		${.OBJDIR}/../../fdt/libfdt.a
 .endif
 
+CFLAGS+=	-DNETIF_OPEN_CLOSE_ONCE
+
 .if ${MK_FORTH} != "no"
 # Enable BootForth
 BOOT_FORTH=	yes



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