1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-20 14:03:39 +03:00

network: create stacked netdevs after the underlying link is activated

Otherwise, the activation policy for the netdevs are ignored.

Fixes #22593.
This commit is contained in:
Yu Watanabe 2022-02-24 08:20:44 +09:00
parent 0802f62efc
commit 047b9991a4

View File

@ -643,6 +643,11 @@ static int netdev_is_ready_to_create(NetDev *netdev, Link *link) {
if (link->set_link_messages > 0)
return false;
/* If stacked netdevs are created before the underlying interface being activated, then
* the activation policy for the netdevs are ignored. See issue #22593. */
if (!link->activated)
return false;
}
if (NETDEV_VTABLE(netdev)->is_ready_to_create)