summaryrefslogtreecommitdiff
path: root/src/network/tc/qdisc.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-10-30 00:19:34 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-10-30 09:33:51 +0900
commit4ecdcb07c9f9f1af44e15405ac8fd176544c30a1 (patch)
tree236c8d62b034d108a0558ccc316151fb7ee66694 /src/network/tc/qdisc.c
parent0f5bd7fe24a5be4588f5d4def4c6cf9c6847a0bd (diff)
downloadsystemd-4ecdcb07c9f9f1af44e15405ac8fd176544c30a1.tar.gz
systemd-4ecdcb07c9f9f1af44e15405ac8fd176544c30a1.tar.bz2
systemd-4ecdcb07c9f9f1af44e15405ac8fd176544c30a1.zip
network: wait for QDiscs to be configured
Diffstat (limited to 'src/network/tc/qdisc.c')
-rw-r--r--src/network/tc/qdisc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/network/tc/qdisc.c b/src/network/tc/qdisc.c
index 2a4724ea9f..ed4a11d265 100644
--- a/src/network/tc/qdisc.c
+++ b/src/network/tc/qdisc.c
@@ -101,9 +101,16 @@ static int qdisc_handler(sd_netlink *rtnl, sd_netlink_message *m, Link *link) {
r = sd_netlink_message_get_errno(m);
if (r < 0 && r != -EEXIST) {
log_link_error_errno(link, r, "Could not set QDisc: %m");
+ link_enter_failed(link);
return 1;
}
+ if (link->route_messages == 0) {
+ log_link_debug(link, "QDiscs configured");
+ link->qdiscs_configured = true;
+ link_check_ready(link);
+ }
+
return 1;
}