mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 16:30:07 +01:00
platform: support creation of prio qdisc
Support the creation of parameterless 'prio' qdiscs. The kernel needs a TCA_OPTIONS attribute initialized with default values. We currently don't support modifying the qdisc parameters.
This commit is contained in:
parent
a5133e708e
commit
d0d35aa278
1 changed files with 4 additions and 0 deletions
|
|
@ -4757,6 +4757,10 @@ _nl_msg_new_qdisc (int nlmsg_type,
|
|||
NLA_PUT_U32 (msg, TCA_TBF_BURST, qdisc->tbf.burst);
|
||||
|
||||
nla_nest_end (msg, tc_options);
|
||||
} else if (nm_streq (qdisc->kind, "prio")) {
|
||||
struct tc_prio_qopt opt = {3, { 1, 2, 2, 2, 1, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 } };
|
||||
|
||||
NLA_PUT (msg, TCA_OPTIONS, sizeof (opt), &opt);
|
||||
} else {
|
||||
if (!(tc_options = nla_nest_start (msg, TCA_OPTIONS)))
|
||||
goto nla_put_failure;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue