diff options
author | Tom Rini <trini@konsulko.com> | 2022-03-11 09:12:02 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-03-18 12:48:17 -0400 |
commit | 01d1b99c9b2d67207050c89f70801178ba9f4f2a (patch) | |
tree | cd7c4d98b4baba8831b095f48b39bee3a1dacc9b /net/bootp.c | |
parent | 5d4e863bf80985f915204270d1ba7c16d58d3077 (diff) | |
download | u-boot-01d1b99c9b2d67207050c89f70801178ba9f4f2a.zip u-boot-01d1b99c9b2d67207050c89f70801178ba9f4f2a.tar.gz u-boot-01d1b99c9b2d67207050c89f70801178ba9f4f2a.tar.bz2 |
Convert CONFIG_NET_RETRY_COUNT to Kconfig
This converts the following to Kconfig:
CONFIG_NET_RETRY_COUNT
Cc: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'net/bootp.c')
-rw-r--r-- | net/bootp.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/net/bootp.c b/net/bootp.c index a896e1e..a544bfc 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -31,7 +31,7 @@ /* * The timeout for the initial BOOTP/DHCP request used to be described by a - * counter of fixed-length timeout periods. TIMEOUT_COUNT represents + * counter of fixed-length timeout periods. CONFIG_NET_RETRY_COUNT represents * that counter * * Now that the timeout periods are variable (exponential backoff and retry) @@ -39,12 +39,7 @@ * execute that many retries, and keep sending retry packets until that time * is reached. */ -#ifndef CONFIG_NET_RETRY_COUNT -# define TIMEOUT_COUNT 5 /* # of timeouts before giving up */ -#else -# define TIMEOUT_COUNT (CONFIG_NET_RETRY_COUNT) -#endif -#define TIMEOUT_MS ((3 + (TIMEOUT_COUNT * 5)) * 1000) +#define TIMEOUT_MS ((3 + (CONFIG_NET_RETRY_COUNT * 5)) * 1000) #define PORT_BOOTPS 67 /* BOOTP server UDP port */ #define PORT_BOOTPC 68 /* BOOTP client UDP port */ |