| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
|
| 3 |
#include <linux/pkt_sched.h> |
| 4 |
|
| 5 |
#include "sd-netlink.h" |
| 6 |
|
| 7 |
#include "multiq.h" |
| 8 |
|
| 9 |
static int multi_queueing_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *req) { |
| 10 |
struct tc_multiq_qopt opt = {}; |
| 11 |
|
| 12 |
assert(req); |
| 13 |
|
| 14 |
/* It looks weird, but the multiq qdisc initialization wants to receive a tc_multiq_qopt attr even |
| 15 |
* though it doesn't do anything with it. */ |
| 16 |
return sd_netlink_message_append_data(req, TCA_OPTIONS, &opt, sizeof(opt)); |
| 17 |
} |
| 18 |
|
| 19 |
const QDiscVTable multiq_vtable = { |
| 20 |
.object_size = sizeof(BandMultiQueueing), |
| 21 |
.tca_kind = "multiq", |
| 22 |
.fill_message = multi_queueing_fill_message, |
| 23 |
}; |