summaryrefslogtreecommitdiffstats
path: root/src/network/tc/qfq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/tc/qfq.c')
-rw-r--r--src/network/tc/qfq.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/network/tc/qfq.c b/src/network/tc/qfq.c
index d2e7b875ef..51aef03210 100644
--- a/src/network/tc/qfq.c
+++ b/src/network/tc/qfq.c
@@ -25,27 +25,28 @@ static int quick_fair_queueing_class_fill_message(Link *link, TClass *tclass, sd
assert(tclass);
assert(req);
- qfq = TCLASS_TO_QFQ(tclass);
+ assert_se(qfq = TCLASS_TO_QFQ(tclass));
r = sd_netlink_message_open_container_union(req, TCA_OPTIONS, "qfq");
if (r < 0)
- return log_link_error_errno(link, r, "Could not open container TCA_OPTIONS: %m");
+ return r;
if (qfq->weight > 0) {
r = sd_netlink_message_append_u32(req, TCA_QFQ_WEIGHT, qfq->weight);
if (r < 0)
- return log_link_error_errno(link, r, "Could not append TCA_QFQ_WEIGHT attribute: %m");
+ return r;
}
if (qfq->max_packet > 0) {
r = sd_netlink_message_append_u32(req, TCA_QFQ_LMAX, qfq->max_packet);
if (r < 0)
- return log_link_error_errno(link, r, "Could not append TCA_QFQ_LMAX attribute: %m");
+ return r;
}
r = sd_netlink_message_close_container(req);
if (r < 0)
- return log_link_error_errno(link, r, "Could not close container TCA_OPTIONS: %m");
+ return r;
+
return 0;
}