Skip to content

Commit bb916f3

Browse files
committed
network: call link_check_ready() when all stacked netdevs are created
Follow-up for 879377c. Otherwise, the underlying interface may stuck in configuring state.
1 parent 9872fe4 commit bb916f3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/network/netdev/netdev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ static int link_create_stacked_netdev_handler(sd_netlink *rtnl, sd_netlink_messa
681681
if (link->create_stacked_netdev_messages == 0) {
682682
link->stacked_netdevs_created = true;
683683
log_link_debug(link, "Stacked netdevs created.");
684+
link_check_ready(link);
684685
}
685686

686687
return 0;

src/network/networkd-link.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,10 @@ static int link_request_stacked_netdevs(Link *link) {
591591
return r;
592592
}
593593

594-
if (link->create_stacked_netdev_messages == 0)
594+
if (link->create_stacked_netdev_messages == 0) {
595595
link->stacked_netdevs_created = true;
596+
link_check_ready(link);
597+
}
596598
if (link->create_stacked_netdev_after_configured_messages == 0)
597599
link->stacked_netdevs_after_configured_created = true;
598600

0 commit comments

Comments
 (0)