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>
fprintf(stderr, "Duplicate \"weights\"\n");
return -1;
}
- NEXT_ARG();
for (idx = 0; idx < FQ_BANDS; ++idx) {
int val;