From a63e5daaa30577cda1a4fcf7a4dc1962fcc766aa Mon Sep 17 00:00:00 2001 From: Susant Sahani <145210+ssahani@users.noreply.github.com> Date: Mon, 20 Nov 2017 23:28:06 +0530 Subject: [PATCH] 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 --- src/network/networkd-link.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index bad984e..dd6bed5 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), -- 2.7.4