freebsd-dev/stand
Kyle Evans 95c61459f3 libsa: Add MAXWAIT to net for establishing max total timeout
Current timeout behavior is to progress in timeout values from MINTMO to
MAXTMO in MINTMO steps before finally timing out. This results in a fairly
long time before operations finally timeout, which may not be ideal for some
use-cases.

Add MAXWAIT that may be configured along with MINTMO/MAXTMO. If we attempt
to start our send/recv cycle over again but MAXWAIT > 0 and MAXWAIT seconds
have already passed, then go ahead and timeout.

This is intended for those that just want to say "timeout after 180 seconds"
rather than calculate and tweak MINTMO/MAXTMO to get their desired timeout.
The default is 0, or "progress from MINTMO to MAXTMO with no exception."

This has been modified since review to allow for it to be defined via CFLAGS
and doing appropriate error checking. Future work may add some Makefile foo
to respect LOADER_NET_MAXWAIT if it's specified in the environment and pass
it in as MAXWAIT accordingly.

Reviewed by:	imp, sbruno, tsoome (all previous version)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D14389
2018-02-26 18:01:35 +00:00
..
arm Go back to one loader.conf 2018-02-26 03:16:47 +00:00
arm64
common load_elf.c: Use consistent indentation 2018-02-21 19:42:54 +00:00
defaults These two directories build man pages, so it's incorrect to tag them 2018-02-26 15:41:20 +00:00
efi Add NO_OBJ to those directories that don't make anything. 2018-02-26 03:16:04 +00:00
fdt Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
ficl Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
ficl32
forth These two directories build man pages, so it's incorrect to tag them 2018-02-26 15:41:20 +00:00
geli Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
i386 Add NO_OBJ to those directories that don't make anything. 2018-02-26 03:16:04 +00:00
kshim A more definitions to kernel emulation shim in order to build stand/usb. 2018-02-07 18:50:36 +00:00
liblua liblua: Implement write support 2018-02-24 02:57:24 +00:00
liblua32 Add Lua as a scripting langauge to /boot/loader 2018-02-12 15:31:53 +00:00
libsa libsa: Add MAXWAIT to net for establishing max total timeout 2018-02-26 18:01:35 +00:00
libsa32
lua lualoader: Re-work menu skipping bits 2018-02-26 15:37:32 +00:00
man
mips Go back to one loader.conf 2018-02-26 03:16:47 +00:00
ofw Fix regression introduced in r328806, preventing boot at least on all 2018-02-03 23:49:21 +00:00
powerpc Add NO_OBJ to those directories that don't make anything. 2018-02-26 03:16:04 +00:00
sparc64 Add NO_OBJ to those directories that don't make anything. 2018-02-26 03:16:04 +00:00
uboot Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
usb Move the stand/usb test loader into its own directory. 2018-02-07 19:20:59 +00:00
userboot libsa: Const-ify buffer argument of write(2) analog 2018-02-23 20:18:09 +00:00
zfs libsa: Const-ify buffer argument of write(2) analog 2018-02-23 20:18:09 +00:00
zfs32
defs.mk Add NO_OBJ to those directories that don't make anything. 2018-02-26 03:16:04 +00:00
fdt.mk
ficl.mk Now that we no longer conditionally compile some files outside of ficl 2018-02-02 15:01:54 +00:00
loader.mk Consolidate three copies of ZFS commands into a central location. 2018-02-21 15:57:36 +00:00
lua.mk Do not include float interfaces when using libsa. 2018-02-23 04:04:25 +00:00
Makefile Go back to one loader.conf 2018-02-26 03:16:47 +00:00
Makefile.amd64 Add Lua as a scripting langauge to /boot/loader 2018-02-12 15:31:53 +00:00
Makefile.arm
Makefile.arm64
Makefile.i386 Switch to proper MK_LOADER_GELI tests. 2017-12-04 01:14:12 +00:00
Makefile.inc Minor flags cleanup 2017-12-02 00:06:58 +00:00
Makefile.mips
Makefile.powerpc
Makefile.sparc64
uboot.mk Unify metadata load files for arm, mips, powerpc, sparc64 2018-02-13 03:44:50 +00:00