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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user