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.
This commit is contained in:
Ian Lepore 2015-05-18 16:43:21 +00:00
parent 1b81d86525
commit 501c31ad4a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283069

View File

@ -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