diff options
author | Josh Wu <josh.wu@atmel.com> | 2013-01-25 10:53:22 +0800 |
---|---|---|
committer | Josh Wu <josh.wu@atmel.com> | 2013-01-25 10:59:52 +0800 |
commit | 235ee63dfe52d19a92a0c767a7e25e00cd638383 (patch) | |
tree | 214c652640473c1cb27f7ab2c29f2dd06f168a15 /net | |
parent | b1c4a87b038bc4aff5c38a17e50975a873e6ee1f (diff) |
at91sama5d31: for TFTP, sama5d31 emac meet many timeout for receiving packets.
Root cause is NOT found. So for tempory make user feel better:
1. increase retry count. from 20 -> 50.
2. shorten the timeout wait time to minimum 1s.
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tftp.c b/net/tftp.c index 59a8ebb3cf3..73301eff224 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -18,7 +18,7 @@ /* Well known TFTP port # */ #define WELL_KNOWN_PORT 69 /* Millisecs to timeout for lost pkt */ -#define TIMEOUT 5000UL +#define TIMEOUT 1000UL #ifndef CONFIG_NET_RETRY_COUNT /* # of timeouts before giving up */ # define TIMEOUT_COUNT 10 |