net: lwip: remove eth_init from net_init as it is called later
PATCH 1/1 net: lwip: remove eth_init from net_init as it is called later
The call to eth_init within net_init causes the network interface to start, stop, start again which can cause issues with certain network device drivers. Remove it to make it behave like the legacy network path.
Fixes 5666865decb8 ("net: lwip: fix initialization sequence before a command")
Signed-off-by Tim Harvey <[email protected]>
--- net/lwip/net-lwip.c | 1 - 1 file changed, 1 deletion(-)
net/lwip/net-lwip.c +0 -1
@@ -285,7 +285,6 @@ int net_init(void)if (!init_done) {eth_init_rings (); -eth_init ();lwip_init (); init_done = true; }
Signature · 1 line
2.25.1
Quoted 16 lines · Tim Harvey
The call to
eth_initwithinnet_initcauses the network interface to start, stop, start again which can cause issues with certain network device drivers. Remove it to make it behave like the legacy network path.Fixes 5666865decb8 ("net: lwip: fix initialization sequence before a command")Signed-off-by Tim Harvey <[email protected]>--- net/lwip/net-lwip.c | 1 - 1 file changed, 1 deletion(-)net/lwip/net-lwip.c +0
-0
net/lwip/net-lwip.c int net_init(void) · line 290
Quoted 7 lines
net/lwip/net-lwip.c +0
-1@@ -285,7 +285,6 @@ int net_init(void)if (!init_done) {eth_init_rings (); -eth_init ();lwip_init (); init_done = true; }
Reviewed-by Jerome Forissier <[email protected]>
Thanks,
Signature · 1 line
Jerome