mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 15:01:27 +02:00
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>
This commit is contained in:
@@ -14,11 +14,6 @@
|
||||
#include "rarp.h"
|
||||
|
||||
#define TIMEOUT 5000UL /* Milliseconds before trying BOOTP again */
|
||||
#ifndef CONFIG_NET_RETRY_COUNT
|
||||
#define TIMEOUT_COUNT 5 /* # of timeouts before giving up */
|
||||
#else
|
||||
#define TIMEOUT_COUNT (CONFIG_NET_RETRY_COUNT)
|
||||
#endif
|
||||
|
||||
int rarp_try;
|
||||
|
||||
@@ -57,7 +52,7 @@ void rarp_receive(struct ip_udp_hdr *ip, unsigned len)
|
||||
*/
|
||||
static void rarp_timeout_handler(void)
|
||||
{
|
||||
if (rarp_try >= TIMEOUT_COUNT) {
|
||||
if (rarp_try >= CONFIG_NET_RETRY_COUNT) {
|
||||
puts("\nRetry count exceeded; starting again\n");
|
||||
net_start_again();
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user