mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 07:01:39 +00:00
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>
This commit is contained in:
parent
505be87a65
commit
8b0c5c1276
1 changed files with 2 additions and 0 deletions
|
@ -596,7 +596,9 @@ void NetStartAgain (void)
|
||||||
NetSetHandler (startAgainHandler);
|
NetSetHandler (startAgainHandler);
|
||||||
#else /* !CONFIG_NET_MULTI*/
|
#else /* !CONFIG_NET_MULTI*/
|
||||||
eth_halt ();
|
eth_halt ();
|
||||||
|
#if !defined(CONFIG_NET_DO_NOT_TRY_ANOTHER)
|
||||||
eth_try_another (!NetRestarted);
|
eth_try_another (!NetRestarted);
|
||||||
|
#endif
|
||||||
eth_init (gd->bd);
|
eth_init (gd->bd);
|
||||||
if (NetRestartWrap) {
|
if (NetRestartWrap) {
|
||||||
NetRestartWrap = 0;
|
NetRestartWrap = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue