]> git.ipfire.org Git - thirdparty/iproute2.git/commit
Parse FQ band weights correctly
authorHemanth Malla <vmalla@microsoft.com>
Thu, 5 Jun 2025 15:56:07 +0000 (08:56 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 5 Jun 2025 15:57:11 +0000 (08:57 -0700)
commit77021bcb4f0828bba4d17951136105aa629ecb3d
tree360522381f84d7c5e3149c09af7cc18fe83994ce
parent605a282a105356bc2fde0d5d13f8953c4adfcf8e
Parse FQ band weights correctly

Currently, NEXT_ARG() is called twice resulting in the first
weight being skipped. This results in the following errors:

$ sudo tc qdisc replace dev enP64183s1 root fq weights 589824 196608 65536
Not enough elements in weights

$ sudo tc qdisc replace dev enP64183s1 root fq weights 589824 196608 65536 nopacing
Illegal "weights" element, positive number expected

Fixes: 567eb4e41045 ("tc: fq: add TCA_FQ_WEIGHTS handling")
Signed-off-by: Hemanth Malla <vmalla@microsoft.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/q_fq.c