From: Susant Sahani <145210+ssahani@users.noreply.github.com> Date: Mon, 20 Nov 2017 17:58:06 +0000 (+0530) Subject: networkd: Do not send requests to create netdevs if they exists. (#6973) X-Git-Tag: v236~170 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a63e5daaa30577cda1a4fcf7a4dc1962fcc766aa;p=thirdparty%2Fsystemd.git 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 --- diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index bad984ef930..dd6bed55159 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -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),