diff options
author | Tom Rini <trini@konsulko.com> | 2022-03-11 09:12:01 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-03-18 12:48:17 -0400 |
commit | 5d4e863bf80985f915204270d1ba7c16d58d3077 (patch) | |
tree | 54745d7890f8b8b4f2c9bc4e1c4eb213e3a2b8b4 /net/arp.c | |
parent | 5f7c886c8218a5dc8ac63fff93ec937a6ed5b200 (diff) | |
download | u-boot-5d4e863bf80985f915204270d1ba7c16d58d3077.tar.gz u-boot-5d4e863bf80985f915204270d1ba7c16d58d3077.tar.bz2 u-boot-5d4e863bf80985f915204270d1ba7c16d58d3077.zip |
Convert CONFIG_ARP_TIMEOUT to Kconfig
This converts the following to Kconfig:
CONFIG_ARP_TIMEOUT
Cc: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'net/arp.c')
-rw-r--r-- | net/arp.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -17,14 +17,6 @@ #include "arp.h" -#ifndef CONFIG_ARP_TIMEOUT -/* Milliseconds before trying ARP again */ -# define ARP_TIMEOUT 5000UL -#else -# define ARP_TIMEOUT CONFIG_ARP_TIMEOUT -#endif - - #ifndef CONFIG_NET_RETRY_COUNT # define ARP_TIMEOUT_COUNT 5 /* # of timeouts before giving up */ #else @@ -109,7 +101,7 @@ int arp_timeout_check(void) t = get_timer(0); /* check for arp timeout */ - if ((t - arp_wait_timer_start) > ARP_TIMEOUT) { + if ((t - arp_wait_timer_start) > CONFIG_ARP_TIMEOUT) { arp_wait_try++; if (arp_wait_try >= ARP_TIMEOUT_COUNT) { |