From patchwork Tue Oct 13 05:26:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhang kai X-Patchwork-Id: 288514 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80374C433E7 for ; Tue, 13 Oct 2020 05:57:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D6FE20725 for ; Tue, 13 Oct 2020 05:57:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="e4bTN6VO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388733AbgJMF5W (ORCPT ); Tue, 13 Oct 2020 01:57:22 -0400 Received: from mail-m964.mail.126.com ([123.126.96.4]:32980 "EHLO mail-m964.mail.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388373AbgJMF5W (ORCPT ); Tue, 13 Oct 2020 01:57:22 -0400 X-Greylist: delayed 1816 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Oct 2020 01:57:21 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=6qfOPwNXt5VhUp+2sc xGXWX2LVukP0fYKhl6n7IX400=; b=e4bTN6VOEPvEr8qV+ZUDLtP1KrWt1b8LlX WAGBbEgoCFv5/R6ZklE4DCPi4iVnTwyA8no810lTn3Q81mKL4CaASpZdgpFuSq1R YAeFJK/SBzxLvmUG0VoaKPsDARQ6a+ceMYhmdsJ1MmEAvwVz3ffsb2y5go/ugYTL 9MyTEu5o0= Received: from localhost.localdomain (unknown [222.128.172.145]) by smtp9 (Coremail) with SMTP id NeRpCgC3cD6cOoVfOvsHLg--.23012S4; Tue, 13 Oct 2020 13:26:53 +0800 (CST) From: zhang kai To: netdev@vger.kernel.org, stephen@networkplumber.org, edumazet@google.com Cc: "zhangkaiheb@126.com" Subject: [PATCH] tc: fq: clarify the length of orphan_mask. Date: Tue, 13 Oct 2020 05:26:40 +0000 Message-Id: <20201013052640.31112-1-zhangkaiheb@126.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: NeRpCgC3cD6cOoVfOvsHLg--.23012S4 X-Coremail-Antispam: 1Uf129KBjvdXoWrtF4fuF1ruw45Zw15WFyDJrb_yoWxurX_ZF 1Iqw48uw43tF92kw15Cwn3tr17Aa10qws5u3srAr1DZF18tFWqgFZF9a4jqw4ru39rAFWx K34DArZ0y3sI9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRiE_MPUUUUU== X-Originating-IP: [222.128.172.145] X-CM-SenderInfo: x2kd0wxndlxvbe6rjloofrz/1tbiFx28-lpD-7o8NQAAsd Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: "zhangkaiheb@126.com" Signed-off-by: kai zhang --- 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));