summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-10-26 10:46:08 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-10-28 04:55:20 +0900
commit4faca0a361011806e546f35e8f49467be3951acb (patch)
tree5ebd65d04b4a2e06d8d994d627f4ede9ac10a27f /src/network
parent081466bd57cd441632e244292036f886ceac9112 (diff)
downloadsystemd-4faca0a361011806e546f35e8f49467be3951acb.tar.gz
network: allow to (automatically) reconfigure failed interface
We have already allowed to reconfigure failed interface manually, but not allowed to do automatically, e.g. on carrier gain. This makes that failed interfaces also reconfigured automatically. Note, the condition is inversed to shorten the condition.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index e901c62fbf..0759fbd9eb 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -1185,7 +1185,7 @@ static int link_reconfigure_impl(Link *link, bool force) {
assert(link);
- if (!IN_SET(link->state, LINK_STATE_INITIALIZED, LINK_STATE_CONFIGURING, LINK_STATE_CONFIGURED, LINK_STATE_UNMANAGED))
+ if (IN_SET(link->state, LINK_STATE_PENDING, LINK_STATE_LINGER))
return 0;
r = netdev_get(link->manager, link->ifname, &netdev);