Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2493850iof; Wed, 8 Jun 2022 06:12:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVTcof4huzOfc/XCJPmgT/cFA2Z4llU01EdF882tsqQkWhDugVcbydm2demJSL1ZsjTwZP X-Received: by 2002:a17:902:b689:b0:167:8b69:d1a7 with SMTP id c9-20020a170902b68900b001678b69d1a7mr11101457pls.156.1654693933240; Wed, 08 Jun 2022 06:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654693933; cv=none; d=google.com; s=arc-20160816; b=qSiauouxCTeWiZE4Vce/t2YQKdZVCaBXU5u3jkUtF0R2q+wiEI14i1REfwvuzgkN3t X7Sub7r7NKzrTOVgtXmbQagzjLaIlaAQrnBZWqP+BiRAYCqbG+GtRi4Fi/D+GE+5yz2p ZoitgR3FC2VTgmAB11IBE0DzIvln4ZjW+/zgziR3q9OIP6QgyhN1hYuh/B2yu7rrC940 zLmVs3PMNqOW9mz0mUcksVqS/YQqgwpSwXvsd3Fca5tZIYcwUdpEFsWG9IvAYlX3SNeY h66uXQ5dsw0gdqJRt/gxEWARSrGflFHyPTmZzpKaaoBxi7pjEhKc8S3J8+hZxbwzZV+N Jc8g== 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:dkim-signature; bh=UUMHXySZTajtme4GikkDyzM1Sh3HUpiZNz4axE0gePE=; b=Yd2hkx/OAAYr/Q9w29LzNO764eidDltU8mnRzHrzGlACw9cn3HBBbvsAbIL6wKsktb /KuV90WB5z9TIadYFzm6SaYSriF0UDakNwLPGyYGFwdSNCAtVM2zz7UkPtI4ezmWaz+C CjMSJv+icpUv5NlADgotWK3itvMsjHhGApHzaa9NwyjYl0R1Gn5TswzcnzhcEoFRV75P Dwz6cJIHD05ObMDavssvlGjaMPKffW8TI7WAK/kv4LcXUlHwn1Qjl91Kg3yKuw0SGzLc KU/9gJ4JtVpAfuP2OMOxEdq3KuXFCpnkar9lK0WFU/faITGfh1wjHZHf8P5nJR4E+6mr iS7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b=ZspoWU8j; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n5-20020a170902e54500b0015ec40a4136si29964926plf.438.2022.06.08.06.12.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 06:12:13 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b=ZspoWU8j; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AC12E27390B; Wed, 8 Jun 2022 05:45:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239482AbiFHMpo (ORCPT + 99 others); Wed, 8 Jun 2022 08:45:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239409AbiFHMpn (ORCPT ); Wed, 8 Jun 2022 08:45:43 -0400 Received: from m1391.mail.163.com (m1391.mail.163.com [220.181.13.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 376C61DE2E6; Wed, 8 Jun 2022 05:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=Dq0bS elIzZ22NuE87EUd0dop6A9eeIPopScc/d7rQTQ=; b=ZspoWU8jR9+7HXQct0QBs dptHVznXWEcY9qJbZYp324BRQ/dD799Rl/2qJyJY8I7FTS7/0ow96xSJwviK4U2M PCgJCMbRpzAMbzt3Vk7A1lvXHeYATa/qz/bfbTetlQcY9p2hWhTmQmPgopLPccnD b1IaupGu9o33Wx0bxDQEMQ= Received: from chen45464546$163.com ( [171.221.147.121] ) by ajax-webmail-wmsvr91 (Coremail) ; Wed, 8 Jun 2022 20:43:31 +0800 (CST) X-Originating-IP: [171.221.147.121] Date: Wed, 8 Jun 2022 20:43:31 +0800 (CST) From: "Chen Lin" To: "Jakub Kicinski" Cc: nbd@nbd.name, john@phrozen.org, sean.wang@mediatek.com, Mark-MC.Lee@mediatek.com, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, matthias.bgg@gmail.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, alexander.duyck@gmail.com Subject: Re:Re: [PATCH v4] net: ethernet: mtk_eth_soc: fix misuse of mem alloc interface netdev[napi]_alloc_frag X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20220113(9671e152) Copyright (c) 2002-2022 www.mailtech.cn 163com In-Reply-To: <20220607161413.655dd63f@kernel.org> References: <20220606143437.25397f08@kernel.org> <1654558751-3702-1-git-send-email-chen45464546@163.com> <20220607161413.655dd63f@kernel.org> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=GBK MIME-Version: 1.0 Message-ID: <55c80848.c37d.18143576bc9.Coremail.chen45464546@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: W8GowAAXiRZzmaBihyYzAA--.48365W X-CM-SenderInfo: hfkh0kqvuwkkiuw6il2tof0z/1tbiXQ8ZnlWBn8-3zQABsq X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,SPOOFED_FREEMAIL_NO_RDNS,T_SCC_BODY_TEXT_LINE autolearn=no 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 QXQgMjAyMi0wNi0wOCAwNzoxNDoxMywgIkpha3ViIEtpY2luc2tpIiA8a3ViYUBrZXJuZWwub3Jn PiB3cm90ZToKPk9uIFR1ZSwgIDcgSnVuIDIwMjIgMDc6Mzk6MTEgKzA4MDAgQ2hlbiBMaW4gd3Jv dGU6Cj4+ICtzdGF0aWMgaW5saW5lIHZvaWQgKm10a19tYXhfbHJvX2J1Zl9hbGxvYyhnZnBfdCBn ZnBfbWFzaykKPgo+Tm8gbmVlZCBmb3IgaW5saW5lLCBjb21waWxlciB3aWxsIGlubGluZSB0aGlz IGFueXdheS4KPgo+PiArewo+PiArCXZvaWQgKmRhdGE7Cj4KPnVuc2lnbmVkIGxvbmcgZGF0YTsg dGhlbiB5b3UgY2FuIG1vdmUgdGhlIGNhc3QgZnJvbSB0aGUgbG9uZyBsaW5lIHRvCj50aGUgcmV0 dXJuIHN0YXRlbWVudCwgc2F2aW5nIHVzIGZyb20gdGhlIHN0cmFuZ2UgaW5kZW50YXRpb24uCj4K Pj4gKwlkYXRhID0gKHZvaWQgKilfX2dldF9mcmVlX3BhZ2VzKGdmcF9tYXNrIHwKPj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gMHgyCjAwMDAwMDAwMDAwMDQ1MzAgPG10a19uYXBpX3J4PjoK Li4uCjRhOTg6ICAgICAgIDUyODU0NDAwICAgICAgICBtb3YgICAgIHcwLCAjMHgyYTIwICAgICAg ICAgICAgICAgICAgICAgLy8gIzEwNzg0CjRhOWM6ICAgICAgIDUyODAwMDQxICAgICAgICBtb3Yg ICAgIHcxLCAjMHgyICAgICAgICAgICAgICAgICAgICAgICAgLy8gIzIKNGFhMDogICAgICAgNzJh MDAwODAgICAgICAgIG1vdmsgICAgdzAsICMweDQsIGxzbCAjMTYKNGFhNDogICAgICAgOTQwMDAw MDAgICAgICAgIGJsICAgICAgMCA8X19nZXRfZnJlZV9wYWdlcz4KNGFhODogICAgICAgZjkwMDMz ZTAgICAgICAgIHN0ciAgICAgeDAsIFtzcCwgIzk2XQoKMDAwMDAwMDAwMDAwMDczMCA8bXRrX3J4 X2FsbG9jPjoKLi4uCjdmYzogICAgICAgMmExNzAzZTAgICAgICAgIG1vdiAgICAgdzAsIHcyMwo4 MDA6ICAgICAgIDUyODAwMDQxICAgICAgICBtb3YgICAgIHcxLCAjMHgyICAgICAgICAgICAgICAg ICAgICAgICAgLy8gIzIKODA0OiAgICAgICA3MTQwMDQ3ZiAgICAgICAgY21wICAgICB3MywgIzB4 MSwgbHNsICMxMgo4MDg6ICAgICAgIDU0ZmZmZTQ5ICAgICAgICBiLmxzICAgIDdkMCA8bXRrX3J4 X2FsbG9jKzB4YTA+ICAvLyBiLnBsYXN0CjgwYzogICAgICAgOTQwMDAwMDAgICAgICAgIGJsICAg ICAgMCA8X19nZXRfZnJlZV9wYWdlcz4KClRoZSBjb21waWxlciBpcyBzbWFydC4g