network: do not call link_joined() when not all netdevs are configured
If some of stacked netdevs are already configured, then link_joined() is called before netdevs are fully configured.
This commit is contained in:
@@ -2681,10 +2681,9 @@ static int link_enter_join_netdev(Link *link) {
|
||||
|
||||
HASHMAP_FOREACH(netdev, link->network->stacked_netdevs, i) {
|
||||
|
||||
if (netdev->ifindex > 0) {
|
||||
link_joined(link);
|
||||
if (netdev->ifindex > 0)
|
||||
/* Assume already enslaved. */
|
||||
continue;
|
||||
}
|
||||
|
||||
log_struct(LOG_DEBUG,
|
||||
LOG_LINK_INTERFACE(link),
|
||||
|
||||
Reference in New Issue
Block a user