summaryrefslogtreecommitdiffstats
path: root/src/network/tc/ets.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/tc/ets.c')
-rw-r--r--src/network/tc/ets.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/network/tc/ets.c b/src/network/tc/ets.c
index f8dd1adabc..c4d594cd1b 100644
--- a/src/network/tc/ets.c
+++ b/src/network/tc/ets.c
@@ -20,57 +20,57 @@ static int enhanced_transmission_selection_fill_message(Link *link, QDisc *qdisc
assert(qdisc);
assert(req);
- ets = ETS(qdisc);
+ assert_se(ets = ETS(qdisc));
r = sd_netlink_message_open_container_union(req, TCA_OPTIONS, "ets");
if (r < 0)
- return log_link_error_errno(link, r, "Could not open container TCA_OPTIONS: %m");
+ return r;
r = sd_netlink_message_append_u8(req, TCA_ETS_NBANDS, ets->n_bands);
if (r < 0)
- return log_link_error_errno(link, r, "Could not append TCA_ETS_NBANDS attribute: %m");
+ return r;
if (ets->n_strict > 0) {
r = sd_netlink_message_append_u8(req, TCA_ETS_NSTRICT, ets->n_strict);
if (r < 0)
- return log_link_error_errno(link, r, "Could not append TCA_ETS_NSTRICT attribute: %m");
+ return r;
}
if (ets->n_quanta > 0) {
r = sd_netlink_message_open_container(req, TCA_ETS_QUANTA);
if (r < 0)
- return log_link_error_errno(link, r, "Could not open container TCA_ETS_QUANTA: %m");
+ return r;
for (unsigned i = 0; i < ets->n_quanta; i++) {
r = sd_netlink_message_append_u32(req, TCA_ETS_QUANTA_BAND, ets->quanta[i]);
if (r < 0)
- return log_link_error_errno(link, r, "Could not append TCA_ETS_QUANTA_BAND 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_ETS_QUANTA: %m");
+ return r;
}
if (ets->n_prio > 0) {
r = sd_netlink_message_open_container(req, TCA_ETS_PRIOMAP);
if (r < 0)
- return log_link_error_errno(link, r, "Could not open container TCA_ETS_PRIOMAP: %m");
+ return r;
for (unsigned i = 0; i < ets->n_prio; i++) {
r = sd_netlink_message_append_u8(req, TCA_ETS_PRIOMAP_BAND, ets->prio[i]);
if (r < 0)
- return log_link_error_errno(link, r, "Could not append TCA_ETS_PRIOMAP_BAND 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_ETS_PRIOMAP: %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;
}