]> Git Repo - J-u-boot.git/commitdiff
net/arp: Do not run net_start_again() on timeout
authorStefan Brüns <[email protected]>
Sun, 30 Aug 2015 15:46:43 +0000 (17:46 +0200)
committerJoe Hershberger <[email protected]>
Wed, 28 Oct 2015 19:57:00 +0000 (14:57 -0500)
net_start_again() will be called from net_loop() if state is NETLOOP_FAIL.

Signed-off-by: Stefan Brüns <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
net/arp.c

index b8655700a828f78439c9499c5fbab5bc90a0c4a6..b1f12bf10ddf1cb1affb1845a24e7f478f049cfd 100644 (file)
--- a/net/arp.c
+++ b/net/arp.c
@@ -112,7 +112,7 @@ void arp_timeout_check(void)
                if (arp_wait_try >= ARP_TIMEOUT_COUNT) {
                        puts("\nARP Retry count exceeded; starting again\n");
                        arp_wait_try = 0;
-                       net_start_again();
+                       net_set_state(NETLOOP_FAIL);
                } else {
                        arp_wait_timer_start = t;
                        arp_request();
This page took 0.036848 seconds and 4 git commands to generate.