Skip to contentSkip to conversation

net: Add CONFIG_NET_DO_NOT_TRY_ANOTHER option

PATCH New Matthias Fuchs 1 participant 1 message Dec 27, 2007 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: Add CONFIG_NET_DO_NOT_TRY_ANOTHER option

When CONFIG_NET_DO_NOT_TRY_ANOTHER is defined U-Boot's networking stack does not automatically switch to another interface. This patch does not touch the default behavior.

---
 net/net.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
net/net.c +2 -0
index c719bc4..2418434 100644
@@ -593,7 +593,9 @@ void NetStartAgain (void)
 	NetSetHandler (startAgainHandler);
 #else	/* !CONFIG_NET_MULTI*/
 	eth_halt ();
+#if !defined(CONFIG_NET_DO_NOT_TRY_ANOTHER)
 	eth_try_another (!NetRestarted);
+#endif
 	eth_init (gd->bd);
 	if (NetRestartWrap) {
 		NetRestartWrap = 0;
Signature · 1 line
1.5.3