]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network/netdev: drop spurious state from the condition to create stacked netdevs 21655/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 6 Dec 2021 22:18:29 +0000 (07:18 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 7 Dec 2021 06:58:25 +0000 (15:58 +0900)
Stacked netdevs are requested when the underlying interface is in
configuring state.

src/network/netdev/netdev.c

index 7797f2a693d6f51fb319918ffcbd77817b4f9e91..b4121dd4735d6d8d1848e5c2e67e2f15309a6e7b 100644 (file)
@@ -617,8 +617,10 @@ static bool netdev_is_ready_to_create(NetDev *netdev, Link *link) {
 
         if (netdev->state != NETDEV_STATE_LOADING)
                 return false;
-        if (!IN_SET(link->state, LINK_STATE_INITIALIZED, LINK_STATE_CONFIGURING, LINK_STATE_CONFIGURED))
+
+        if (!IN_SET(link->state, LINK_STATE_CONFIGURING, LINK_STATE_CONFIGURED))
                 return false;
+
         if (netdev_get_create_type(netdev) == NETDEV_CREATE_AFTER_CONFIGURED &&
             link->state != LINK_STATE_CONFIGURED)
                 return false;