u-boot/net
Bartlomiej Sieka e83cc06375 net: Make TFTP server timeout configurable
There are two aspects of a TFTP transfer involving timeouts:
1. timeout waiting for initial server reply after sending RRQ
2. timeouts while transferring actual data from the server

Since the upcoming auto-update feature attempts a TFTP download during each
boot, it is undesirable to have a long delay when the TFTP server is not
available. Thus, this commit makes the server timeout (1.) configurable by two
global variables:

TftpRRQTimeoutMSecs
TftpRRQTimeoutCountMax

TftpRRQTimeoutMSecs overrides default timeout when trying to connect to a TFTP
server, TftpRRQTimeoutCountMax overrides default number of connection retries.
The total delay when trying to download a file from a non-existing TFTP server
is TftpRRQTimeoutMSecs x TftpRRQTimeoutCountMax milliseconds.

Timeouts during file transfers (2.) are unaffected.

Signed-off-by: Rafal Czubak <rcz@semihalf.com>
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
2008-10-18 21:54:00 +02:00
..
bootp.c net: express the first argument to NetSetTimeout() in milliseconds 2008-10-18 21:54:00 +02:00
bootp.h net: express the first argument to NetSetTimeout() in milliseconds 2008-10-18 21:54:00 +02:00
eth.c Adds two more ethernet interface to 83xx 2008-10-18 21:54:00 +02:00
Makefile Build: split COBJS value into multiple lines 2007-11-15 11:05:18 -07:00
net.c net: express the first argument to NetSetTimeout() in milliseconds 2008-10-18 21:54:00 +02:00
nfs.c net: express the first argument to NetSetTimeout() in milliseconds 2008-10-18 21:54:00 +02:00
nfs.h * Patch by Steven Scholz, 25 Feb 2004: 2004-02-27 00:07:27 +00:00
rarp.c net: express the first argument to NetSetTimeout() in milliseconds 2008-10-18 21:54:00 +02:00
rarp.h Initial revision 2002-07-20 20:14:13 +00:00
sntp.c net: express the first argument to NetSetTimeout() in milliseconds 2008-10-18 21:54:00 +02:00
sntp.h * Patch by Masami Komiya, 30 Mar 2005: 2005-04-01 00:25:43 +00:00
tftp.c net: Make TFTP server timeout configurable 2008-10-18 21:54:00 +02:00
tftp.h Initial revision 2000-12-28 11:02:30 +00:00