Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2016 13:53:38 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r304680 - in head/sys/boot/efi: libefi loader
Message-ID:  <201608231353.u7NDrcXi095853@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"



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