Commit 8b0c5c127690335758100c25eaec2b84db97c101

Authored by Matthias Fuchs
Committed by Ben Warren
1 parent 505be87a65

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.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -596,7 +596,9 @@
596 596 NetSetHandler (startAgainHandler);
597 597 #else /* !CONFIG_NET_MULTI*/
598 598 eth_halt ();
  599 +#if !defined(CONFIG_NET_DO_NOT_TRY_ANOTHER)
599 600 eth_try_another (!NetRestarted);
  601 +#endif
600 602 eth_init (gd->bd);
601 603 if (NetRestartWrap) {
602 604 NetRestartWrap = 0;