diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-02-04 13:45:29 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-02-04 13:45:39 +0100 |
commit | 18de0969c5763ce119692b59f8622c379e79c6cc (patch) | |
tree | d1f05e8c456b5ddb04c19af7541d8cec8bf59b2a /src/network/tc/qdisc.c | |
parent | Fix generator name in hibernate-resume-generator's drop-in (diff) | |
download | systemd-18de0969c5763ce119692b59f8622c379e79c6cc.tar.xz systemd-18de0969c5763ce119692b59f8622c379e79c6cc.zip |
network: split TrafficControlQueueingDiscipline section into small pieces
Closes #14763.
Diffstat (limited to 'src/network/tc/qdisc.c')
-rw-r--r-- | src/network/tc/qdisc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/network/tc/qdisc.c b/src/network/tc/qdisc.c index 38086a8975..ee0637bf32 100644 --- a/src/network/tc/qdisc.c +++ b/src/network/tc/qdisc.c @@ -234,7 +234,7 @@ int qdisc_section_verify(QDisc *qdisc, bool *has_root, bool *has_clsact) { return 0; } -int config_parse_tc_qdiscs_parent( +int config_parse_qdisc_parent( const char *unit, const char *filename, unsigned line, @@ -254,8 +254,9 @@ int config_parse_tc_qdiscs_parent( assert(lvalue); assert(rvalue); assert(data); + assert(ltype >= 0 && ltype < _QDISC_KIND_MAX); - r = qdisc_new_static(_QDISC_KIND_INVALID, network, filename, section_line, &qdisc); + r = qdisc_new_static(ltype, network, filename, section_line, &qdisc); if (r < 0) return r; |