summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2015-08-30 17:46:43 +0200
committerJoe Hershberger <joe.hershberger@ni.com>2015-10-28 14:57:00 -0500
commit943231119f3caaaca7db4c588e4f3e9a6cec426a (patch)
tree9382ac946959b79db49d51f72b73211fa9eedbb9 /net
parentc56eb57316ac0094aa2b5b805762d239a18f0c63 (diff)
downloadu-boot-imx-943231119f3caaaca7db4c588e4f3e9a6cec426a.zip
u-boot-imx-943231119f3caaaca7db4c588e4f3e9a6cec426a.tar.gz
u-boot-imx-943231119f3caaaca7db4c588e4f3e9a6cec426a.tar.bz2
net/arp: Do not run net_start_again() on timeout
net_start_again() will be called from net_loop() if state is NETLOOP_FAIL. Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r--net/arp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/arp.c b/net/arp.c
index b865570..b1f12bf 100644
--- 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();