]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: fq: clarify the length of orphan_mask. v5.9.0
authorzhangkaiheb@126.com <zhangkaiheb@126.com>
Tue, 13 Oct 2020 05:26:40 +0000 (05:26 +0000)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 15 Oct 2020 22:16:52 +0000 (15:16 -0700)
Signed-off-by: kai zhang <zhangkaiheb@126.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/q_fq.c

index 98d1bf4014e3f9fbb8e804f92dcdc96e417b5c74..b10d01e901d880d85ac20f75d9f1af69136facec 100644 (file)
--- a/tc/q_fq.c
+++ b/tc/q_fq.c
@@ -253,7 +253,7 @@ static int fq_parse_opt(struct qdisc_util *qu, int argc, char **argv,
                          &refill_delay, sizeof(refill_delay));
        if (set_orphan_mask)
                addattr_l(n, 1024, TCA_FQ_ORPHAN_MASK,
-                         &orphan_mask, sizeof(refill_delay));
+                         &orphan_mask, sizeof(orphan_mask));
        if (set_ce_threshold)
                addattr_l(n, 1024, TCA_FQ_CE_THRESHOLD,
                          &ce_threshold, sizeof(ce_threshold));