networkd: Do not send requests to create netdevs if they exists. (#6973)
If the netdev already exists we should not send requests to kernel to create them. fixes #5448
This commit is contained in:
parent
8a9b3a23fd
commit
a63e5daaa3
|
@ -2289,6 +2289,11 @@ static int link_enter_join_netdev(Link *link) {
|
|||
|
||||
HASHMAP_FOREACH(netdev, link->network->stacked_netdevs, i) {
|
||||
|
||||
if (netdev->ifindex > 0) {
|
||||
link_joined(link);
|
||||
continue;
|
||||
}
|
||||
|
||||
log_struct(LOG_DEBUG,
|
||||
LOG_LINK_INTERFACE(link),
|
||||
LOG_NETDEV_INTERFACE(netdev),
|
||||
|
|
Loading…
Reference in New Issue