mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
network: call link_check_ready() when all stacked netdevs are created
Follow-up for 879377cad5.
Otherwise, the underlying interface may stuck in configuring state.
This commit is contained in:
@@ -681,6 +681,7 @@ static int link_create_stacked_netdev_handler(sd_netlink *rtnl, sd_netlink_messa
|
||||
if (link->create_stacked_netdev_messages == 0) {
|
||||
link->stacked_netdevs_created = true;
|
||||
log_link_debug(link, "Stacked netdevs created.");
|
||||
link_check_ready(link);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -591,8 +591,10 @@ static int link_request_stacked_netdevs(Link *link) {
|
||||
return r;
|
||||
}
|
||||
|
||||
if (link->create_stacked_netdev_messages == 0)
|
||||
if (link->create_stacked_netdev_messages == 0) {
|
||||
link->stacked_netdevs_created = true;
|
||||
link_check_ready(link);
|
||||
}
|
||||
if (link->create_stacked_netdev_after_configured_messages == 0)
|
||||
link->stacked_netdevs_after_configured_created = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user