diff options
author | Hiroshi Ito <ito@mlb.co.jp> | 2008-01-31 18:35:04 +0900 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-02-14 01:26:13 +0100 |
commit | fe891ecf4d187e9d11dde869ed4623af52b54451 (patch) | |
tree | be8e81d8b8a64dafc5c1f1c508db5533b515a41b /net | |
parent | 88f72527f5b89c0905ad5c36cc2ef8d29dd6bbf0 (diff) | |
download | u-boot-midas-fe891ecf4d187e9d11dde869ed4623af52b54451.tar.gz u-boot-midas-fe891ecf4d187e9d11dde869ed4623af52b54451.tar.bz2 u-boot-midas-fe891ecf4d187e9d11dde869ed4623af52b54451.zip |
NFS Timeout with large files.
Retry to send NFS packet before reaching timeout.
Signed-off-by: Hiroshi Ito <ito@mlb.co.jp>
Diffstat (limited to 'net')
-rw-r--r-- | net/nfs.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -34,7 +34,8 @@ #if defined(CONFIG_CMD_NET) && defined(CONFIG_CMD_NFS) #define HASHES_PER_LINE 65 /* Number of "loading" hashes per line */ -#define NFS_TIMEOUT 60UL +#define NFS_RETRY_COUNT 30 +#define NFS_TIMEOUT 2UL static int fs_mounted = 0; static unsigned long rpc_id = 0; @@ -586,6 +587,10 @@ Interfaces of U-BOOT static void NfsTimeout (void) { + if ( NfsTimeoutCount++ < NFS_RETRY_COUNT ) { + NfsSend (); + return; + } puts ("Timeout\n"); NetState = NETLOOP_FAIL; return; |