netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tc: fq: clarify the length of orphan_mask.
@ 2020-10-13  5:26 zhang kai
  0 siblings, 0 replies; only message in thread
From: zhang kai @ 2020-10-13  5:26 UTC (permalink / raw)
  To: netdev, stephen, edumazet; +Cc: zhangkaiheb

From: "zhangkaiheb@126.com" <zhangkaiheb@126.com>

Signed-off-by: kai zhang <zhangkaiheb@126.com>
---
 tc/q_fq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tc/q_fq.c b/tc/q_fq.c
index 98d1bf40..b10d01e9 100644
--- 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));
-- 
2.17.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-13  5:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-13  5:26 [PATCH] tc: fq: clarify the length of orphan_mask zhang kai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).