mirror of
https://xff.cz/git/u-boot/
synced 2025-11-02 03:17:29 +01:00
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>
This commit is contained in:
10
net/arp.c
10
net/arp.c
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user