Files
u-boot/net
Jerome Forissier 9f6b9f57fe net: lwip: move eth_init() out of new_netif()
Move the initialization of the ethernet devices out of the new_netif()
function. Indeed, new_netif() accepts a struct device argument, which
is expected to be valid and active. The activation and selection of
this device are achieved by eth_init() (on first time the network
stack is used) and eth_set_current(). This is what takes care of the
ethrotate and ethact environment variables. Therefore, move these calls
to a new function: net_lwip_set_current(), and use it whenever a
net-lwip command is run.

This patch hopefully fixes the incorrect net-lwip behavior observed on
boards with multiple ethernet interfaces [1].

Tested on an i.MX8MPlus EVK equipped wih two ethernet ports. The dhcp
command succeeds whether the cable is plugged into the first or second
port.

[1] https://lists.denx.de/pipermail/u-boot/2025-January/576326.html

Reported-by: E Shattow <e@freeshell.de>
Tested-by: E Shattow <e@freeshell.de>
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
2025-02-12 12:36:57 -06:00
..
2023-12-21 08:54:37 -05:00
2024-07-15 12:12:18 -06:00
2023-06-14 15:48:45 -04:00
2024-07-15 12:12:18 -06:00
2024-12-25 22:31:04 -06:00
2023-12-21 08:54:37 -05:00
2024-11-16 21:35:05 +01:00
2024-05-05 11:21:39 -03:00
2024-12-28 11:59:42 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2023-12-21 08:54:37 -05:00
2024-07-15 12:12:18 -06:00
2018-07-02 14:14:20 -05:00