]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: Do not send requests to create netdevs if they exists. (#6973)
authorSusant Sahani <145210+ssahani@users.noreply.github.com>
Mon, 20 Nov 2017 17:58:06 +0000 (23:28 +0530)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Nov 2017 17:58:06 +0000 (18:58 +0100)
If the netdev already exists we should not send requests to
kernel to create them.

fixes #5448

src/network/networkd-link.c

index bad984ef9306efe2336a318115325efdc592e183..dd6bed55159374b32e9f19640a333b4b3a9e6514 100644 (file)
@@ -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),