mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
* Patch by Ganapathi C, 04 Aug 2004:
Fix NFS timeout issue
This commit is contained in:
parent
e1a3f6b39b
commit
a5725fabc0
2 changed files with 12 additions and 7 deletions
|
@ -2,6 +2,9 @@
|
|||
Changes since U-Boot 1.1.1:
|
||||
======================================================================
|
||||
|
||||
* Patch by Ganapathi C, 04 Aug 2004:
|
||||
Fix NFS timeout issue
|
||||
|
||||
* Patch by Yuli Barcohen, 19 Jul 2004:
|
||||
- Fix host tools building in Cygwin environment
|
||||
- Fix header files search order for host tools
|
||||
|
|
16
net/nfs.c
16
net/nfs.c
|
@ -582,6 +582,14 @@ nfs_read_reply (uchar *pkt, unsigned len)
|
|||
Interfaces of U-BOOT
|
||||
**************************************************************************/
|
||||
|
||||
static void
|
||||
NfsTimeout (void)
|
||||
{
|
||||
puts ("Timeout\n");
|
||||
NetState = NETLOOP_FAIL;
|
||||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
NfsHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len)
|
||||
{
|
||||
|
@ -660,6 +668,7 @@ NfsHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len)
|
|||
|
||||
case STATE_READ_REQ:
|
||||
rlen = nfs_read_reply (pkt, len);
|
||||
NetSetTimeout (NFS_TIMEOUT * CFG_HZ, NfsTimeout);
|
||||
if (rlen > 0) {
|
||||
nfs_offset += rlen;
|
||||
NfsSend ();
|
||||
|
@ -676,13 +685,6 @@ NfsHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
NfsTimeout (void)
|
||||
{
|
||||
puts ("Timeout\n");
|
||||
NetState = NETLOOP_FAIL;
|
||||
return;
|
||||
}
|
||||
|
||||
void
|
||||
NfsStart (void)
|
||||
|
|
Loading…
Reference in a new issue