From: Yu Watanabe Date: Mon, 6 Dec 2021 22:18:29 +0000 (+0900) Subject: network/netdev: drop spurious state from the condition to create stacked netdevs X-Git-Tag: v250-rc1~41^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F21655%2Fhead;p=thirdparty%2Fsystemd.git network/netdev: drop spurious state from the condition to create stacked netdevs Stacked netdevs are requested when the underlying interface is in configuring state. --- diff --git a/src/network/netdev/netdev.c b/src/network/netdev/netdev.c index 7797f2a693d..b4121dd4735 100644 --- a/src/network/netdev/netdev.c +++ b/src/network/netdev/netdev.c @@ -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;