Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2548307rwo; Sun, 23 Jul 2023 18:39:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlGAGf9M60Uhdm1SkPhfq/ftLbM1reZtT9nK2SytEZZBkzN+ySjhtLpe3fu6zevJI99JQ4mu X-Received: by 2002:a17:906:3154:b0:992:ef60:aadd with SMTP id e20-20020a170906315400b00992ef60aaddmr8984243eje.13.1690162785662; Sun, 23 Jul 2023 18:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690162785; cv=none; d=google.com; s=arc-20160816; b=Sjn1c3CXd7yW5jkkyBaQxdeqJdmZrs68VjJ90jMtyVj+epNir5CXV0KFMhV/0x9+Uw vPCQ7vxGbxf/kB2wqVCGYJK1Yh2lvFh09SxDsnR2dgbOYz4UMZCLv9ifd5BakUxMMHr1 az/JSkMd5kj++p1YMcRsgppKJy2uoT5kJrrkqfQQpaU61q2mvqr7No+zgaCNIjUFBI5P zaJc269sbsOhkv/34GkC4tOZXEvQacIqsxHWvqoFK3BF+8c8DCUEQT+dTOq+esnnTbgd Jz5jPM19zE4ZyJ9DPaBFFdseEnCvrhWboQh6M0Q0x4iNznPkyVhlpFb7KM+HLbC6Ap/Q 9x7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date; bh=CzWHb5yolLO1DMwsgkXjEBiCIo7Uho/dQwN7Oz0Yq3Q=; fh=XVYaA9l2SdMykJctg5lzh+EmtzkWTz5KSc9cQn/Dy4c=; b=UoBWXTRYw1ITYq/3MafyEI9l0dKBSPfzsPVlkkbxURb9uAsmFelIGourrNQaN0yilU RA+qOeKCdf0Aw3PkjRsSda8osaIEjYAMLoufOLnW/iM0RujxHZGpoH77h5kUt9o3jE+H E7nHQduiRwbYclAuUfQ/koF4OrsdOC64NXOn4zXzBp+W5iH+KkMjANbYELV1DorDbaxE MBAYWijfRpaOBivi91056nOGuJbCkA+H0MJcDkMXUhrm718SUaSVdsbbez4DhOzjQxP4 +70AARZCAyO2xe+gdS05g2EiIRGcXrUGwBBnR8U1BU9nzohNfWbK5QCA6kTec/yJzGNP ZDgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t6-20020a170906268600b0099238b86ef1si6044841ejc.164.2023.07.23.18.39.21; Sun, 23 Jul 2023 18:39:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230023AbjGXBVH (ORCPT + 99 others); Sun, 23 Jul 2023 21:21:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbjGXBVC (ORCPT ); Sun, 23 Jul 2023 21:21:02 -0400 Received: from zg8tmty3ljk5ljewns4xndka.icoremail.net (zg8tmty3ljk5ljewns4xndka.icoremail.net [167.99.105.149]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CDBE91730; Sun, 23 Jul 2023 18:20:32 -0700 (PDT) Received: from linma$zju.edu.cn ( [42.120.103.62] ) by ajax-webmail-mail-app2 (Coremail) ; Mon, 24 Jul 2023 09:19:14 +0800 (GMT+08:00) X-Originating-IP: [42.120.103.62] Date: Mon, 24 Jul 2023 09:19:14 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "Lin Ma" To: "Victor Nogueira" Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] net/sched: mqprio: Add length check for TCA_MQPRIO_{MAX/MIN}_RATE64 X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.14 build 20220622(41e5976f) Copyright (c) 2002-2023 www.mailtech.cn mispb-4df6dc2c-e274-4d1c-b502-72c5c3dfa9ce-zj.edu.cn In-Reply-To: References: <20230723075631.3712113-1-linma@zju.edu.cn> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <225079a8.e02fc.189857aa264.Coremail.linma@zju.edu.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: by_KCgBXX4uS0b1k8qhwCg--.27483W X-CM-SenderInfo: qtrwiiyqvtljo62m3hxhgxhubq/1tbiAwQFEmS8hHkF2QAGsv X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGVsbG8gVmljdG9yLAoKPgo+IFNob3VsZG4ndCB0aGUgY2hlY2sgYmUgbmxhX2xlbihhdHRyKSAh PSBzaXplb2YodTY0KT8KPiBBbiBhdHRyaWJ1dGUgd2l0aC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