svn commit: r304680 - in head/sys/boot/efi: libefi loader
Baptiste Daroussin
bapt at FreeBSD.org
Tue Aug 23 13:53:39 UTC 2016
Author: bapt
Date: Tue Aug 23 13:53:38 2016
New Revision: 304680
URL: https://svnweb.freebsd.org/changeset/base/304680
Log:
EFI loader: only open/close on the net device with tftpfs
It prevents issuing a dhcp request before each file open
As a consequence netbooting over tftpfs is significantly faster
Sponsored by: Gandi.net
Modified:
head/sys/boot/efi/libefi/Makefile
head/sys/boot/efi/loader/Makefile
Modified: head/sys/boot/efi/libefi/Makefile
==============================================================================
--- head/sys/boot/efi/libefi/Makefile Tue Aug 23 13:51:55 2016 (r304679)
+++ head/sys/boot/efi/libefi/Makefile Tue Aug 23 13:53:38 2016 (r304680)
@@ -14,7 +14,7 @@ SRCS+= time_event.c
.endif
.if defined(LOADER_TFTP_SUPPORT)
-CFLAGS+= -DLOADER_TFTP_SUPPORT
+CFLAGS+= -DLOADER_TFTP_SUPPORT -DNETIF_OPEN_CLOSE_ONCE
.endif
# We implement a slightly non-standard %S in that it always takes a
Modified: head/sys/boot/efi/loader/Makefile
==============================================================================
--- head/sys/boot/efi/loader/Makefile Tue Aug 23 13:51:55 2016 (r304679)
+++ head/sys/boot/efi/loader/Makefile Tue Aug 23 13:53:38 2016 (r304680)
@@ -22,7 +22,7 @@ SRCS= autoload.c \
vers.c
.if defined(LOADER_TFTP_SUPPORT)
-CFLAGS+= -DLOADER_TFTP_SUPPORT
+CFLAGS+= -DLOADER_TFTP_SUPPORT -DNETIF_OPEN_CLOSE_ONCE
.endif
.if ${MK_ZFS} != "no"
More information about the svn-src-head
mailing list