summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-07-14 05:48:02 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-07-15 10:15:25 +0200
commit5d976f5f64a29e9df0afe95724716eb9c4221b24 (patch)
treebc9864f0021094bf5333540da2356a571ba585ca
parentnetwork: make link_request_set_nexthop() called from link_request_set_routes(... (diff)
downloadsystemd-5d976f5f64a29e9df0afe95724716eb9c4221b24.tar.xz
systemd-5d976f5f64a29e9df0afe95724716eb9c4221b24.zip
network: do not call link_check_ready() in link_request_set_routing_policy_rule()
It will be called in link_request_set_nexthop() or serveral handlers().
-rw-r--r--src/network/networkd-link.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 3949f88a22..91ec959011 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -932,10 +932,9 @@ static int link_request_set_routing_policy_rule(Link *link) {
}
routing_policy_rule_purge(link->manager, link);
- if (link->routing_policy_rule_messages == 0) {
+ if (link->routing_policy_rule_messages == 0)
link->routing_policy_rules_configured = true;
- link_check_ready(link);
- } else {
+ else {
log_link_debug(link, "Setting routing policy rules");
link_set_state(link, LINK_STATE_CONFIGURING);
}