We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09699f1 commit f1a3b28Copy full SHA for f1a3b28
net/sched/sch_fq.c
@@ -919,14 +919,8 @@ static const struct nla_policy fq_policy[TCA_FQ_MAX + 1] = {
919
[TCA_FQ_TIMER_SLACK] = { .type = NLA_U32 },
920
[TCA_FQ_HORIZON] = { .type = NLA_U32 },
921
[TCA_FQ_HORIZON_DROP] = { .type = NLA_U8 },
922
- [TCA_FQ_PRIOMAP] = {
923
- .type = NLA_BINARY,
924
- .len = sizeof(struct tc_prio_qopt),
925
- },
926
- [TCA_FQ_WEIGHTS] = {
927
928
- .len = FQ_BANDS * sizeof(s32),
929
+ [TCA_FQ_PRIOMAP] = NLA_POLICY_EXACT_LEN(sizeof(struct tc_prio_qopt)),
+ [TCA_FQ_WEIGHTS] = NLA_POLICY_EXACT_LEN(FQ_BANDS * sizeof(s32)),
930
};
931
932
/* compress a u8 array with all elems <= 3 to an array of 2-bit fields */
0 commit comments