summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2015-05-18 16:43:21 +0000
committerian <ian@FreeBSD.org>2015-05-18 16:43:21 +0000
commit4bcb68ac01ffdbec142b346e9a9cd9f1bfdc1c52 (patch)
tree77b0faea9e94d57741b4ff8a04698930b8dd8ac2
parentbcef2ac230d45af84c285b23a775a60395f3e05d (diff)
downloadFreeBSD-src-4bcb68ac01ffdbec142b346e9a9cd9f1bfdc1c52.zip
FreeBSD-src-4bcb68ac01ffdbec142b346e9a9cd9f1bfdc1c52.tar.gz
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.
-rw-r--r--sys/boot/arm/uboot/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/arm/uboot/Makefile b/sys/boot/arm/uboot/Makefile
index c37ffe2..dce603a 100644
--- a/sys/boot/arm/uboot/Makefile
+++ b/sys/boot/arm/uboot/Makefile
@@ -77,6 +77,8 @@ LIBUBOOT_FDT= ${.OBJDIR}/../../uboot/fdt/libuboot_fdt.a
LIBFDT= ${.OBJDIR}/../../fdt/libfdt.a
.endif
+CFLAGS+= -DNETIF_OPEN_CLOSE_ONCE
+
.if ${MK_FORTH} != "no"
# Enable BootForth
BOOT_FORTH= yes
OpenPOWER on IntegriCloud