1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03: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:
Yu Watanabe 2021-12-08 01:36:07 +09:00
parent 9872fe44cb
commit bb916f350a
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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;