Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4135519rwb; Fri, 30 Sep 2022 13:26:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6QdTkypRRXgA/NAh+ItstXJ2fuDW9VmIjhciedV8yf79oHacGHQ28P3SiYGd5/imPz6dX7 X-Received: by 2002:a63:fa4d:0:b0:43c:7fa:95f7 with SMTP id g13-20020a63fa4d000000b0043c07fa95f7mr8949385pgk.48.1664569581592; Fri, 30 Sep 2022 13:26:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664569581; cv=pass; d=google.com; s=arc-20160816; b=jtIBHzNprrPii7UCIa31n72XMTW32EmM9dUdeThhcdOQcrxbmzJx7A3LN3EbB9lq9/ rgJTMREf2kUYLK2ujdylFEqIlM0YfWC3w25AkQFm6y3G1Vtu3CEMMtyr8Cb8SZC6oj/j U/snnSVxrs+0jLauQCnXcIBY4/e12ln/vX8ozaAux+2q00yuk4MbbuJL118V1ohJ5q4J 3pgjEQV2hIFEje4kookVN9cFmflKfd0BsSa5pGQhY2dCL1FXuWCL59sfSDSVST1sJI/8 v3OLMFfQW4b/YVMFNe6EyXazr8/FYhpcal77GEdGy4LL8BLKW05iabVLo2S9PyCxkifA hwdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=EMrsfw9TMAHA7nzU5P6Y2jA/KkdPqu7WYre1EenGHF8=; b=uefhizS1K0NYh+gtwjrdTKZj0Mc+TiZwwGv6d4tQD16uge0/G1rl7TUCS3EmLhuTnC YmCKw3KztpaFfXECu94uvSH8wIFzlw/LfRbyWaSi3B6+ual92eHI9FMhMQTFYdoV+l0o T+CEGv4HKuqNnBebMKEJs8j6NXgU7YO2OxS58EL8ZQI6h4niBoKxICAZsSS3UZsRvAow N026p2B3U2gMywXK5TmPsAxp8dKQgFxit8xX7d7+EXfBzS5HWFCxKGjGigBGBPmBGjRO yGp9+SUq/XTo5kARmv0nLi1OhRUx29omSt0b40o0gfdfHAv7PJQVVP9Y2XZqWCXFu1sL 9Ysw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=qLu4zRKn; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020a170902c40c00b00177f7fe8ea9si3988371plk.188.2022.09.30.13.26.09; Fri, 30 Sep 2022 13:26:21 -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; dkim=pass header.i=@nxp.com header.s=selector2 header.b=qLu4zRKn; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232376AbiI3UID (ORCPT + 99 others); Fri, 30 Sep 2022 16:08:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232211AbiI3UIA (ORCPT ); Fri, 30 Sep 2022 16:08:00 -0400 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140043.outbound.protection.outlook.com [40.107.14.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 923DF1730EA; Fri, 30 Sep 2022 13:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CKUtrsA+fG8/7Q8XnLCWEvaTa6kSyZAkFlheXtDLc5R/GH9RShLop+Drj336ptU+FSkMCD1lIdm5fV25BDJkz+A7aeVZK8B90Vj3JC/mLU/8TCs/bYIHOev2ueRhVhGSx90zqVybWzjXpj6uaHiP1LcSHVlpfHkgss1skgUE6PaIKKO5iD3eWJORBy8OwnfpUJjm57bg1ppR5PpVkMpGC5BrY56m+2EfQgCGASarF5maE6In00hjwh1Vr8bweGd7xg5tjQNlKtjF9LypdGsAjfXknoEvBS09p55omsSCaMcPgcYeAQ+jcb/S3LYATGNB1AD/bvPU66Jl/PCAlggHrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EMrsfw9TMAHA7nzU5P6Y2jA/KkdPqu7WYre1EenGHF8=; b=nJkpFT3Hfj9+Vw7bVBnPGfXg3B7LHHSedIF7khVJ8W08eDKb6xezWNh67chZAx8zsdi+uda/Q8R5HBUMuVax8//6VFgoDKQ1CbC1dZuKdfvhjEkL3uaJWcL5tdWAesO+NuFhxsVP9HyjXldOg6BtGJkVCclWgyCSGSkDjT3snI8Ul3bmUusxme/pg7310xyKyDeiN+aKAHB7sUDXDgZULu6QDabKKGeD84lSKKZAfdqdvKAtY91YqpN6R47SKSJgXte4n3eT+COcPr9S+IyZujXERYa6kmabSkidG/HcExCQqfFJFIefOEMNU9Qej6dGsVYUHv+/FClIn9cF/UPN1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EMrsfw9TMAHA7nzU5P6Y2jA/KkdPqu7WYre1EenGHF8=; b=qLu4zRKnyUovmnxOlHzd/tyzWxm1rLOD7lgPT6j56K4qD4742P3yj1HYYLA33MxdKWT4ED/svu3pNiiqxT26rHAsGulalZsjPKVeMaDke6ThcbkxmiRNa+tzhHYqRjQQAzdE8KvkNSyWgzQpltVHCUANRRT6cxx8gpxYEDW7X2c= Received: from PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) by PA4PR04MB8064.eurprd04.prod.outlook.com (2603:10a6:102:cf::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.23; Fri, 30 Sep 2022 20:07:55 +0000 Received: from PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::a543:fc4e:f6c5:b11f]) by PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::a543:fc4e:f6c5:b11f%9]) with mapi id 15.20.5676.023; Fri, 30 Sep 2022 20:07:55 +0000 From: Shenwei Wang To: Andrew Lunn CC: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Wei Fang , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "imx@lists.linux.dev" Subject: RE: [EXT] Re: [PATCH 1/1] net: fec: using page pool to manage RX buffers Thread-Topic: [EXT] Re: [PATCH 1/1] net: fec: using page pool to manage RX buffers Thread-Index: AQHY1QQs3moef3i30kelaD3cHlhvbK34Zc4AgAAAZbA= Date: Fri, 30 Sep 2022 20:07:55 +0000 Message-ID: References: <20220930193751.1249054-1-shenwei.wang@nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PAXPR04MB9185:EE_|PA4PR04MB8064:EE_ x-ms-office365-filtering-correlation-id: ade864d7-cfd5-4a5f-7958-08daa31f765f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BjCUn6Pw6gmFnERSwgJsiKsnym3rNOTrUZu/BHKwRGPc/SYvKOnX+YvASb+jXI0McpIa9r9uMbLMJlcrHy0BYKGI5AN5/huxWNyDcRtFn/r1hTMK5GPdO09k86LSm+KEa00KINLqRgTh4TqBSlzls7YVxn2PcHzf2Dh6hV3/fnRyo05+cbnUOZqF+NhPSUzc1h9oqlwXKDF/+QRaawJOGPGRYUvL+DbcgbuZswaV8bXSuu7c2W2UmLZ0wU7Lr3FlAfGMiALuNBw/Kc8t9Ehrt1CxV5LW0NYiiG++JtSTgNHZwuAgNL/gNSs34dVDLdrR9ekXIuzeSh3zDE7tF34GYNXQ0yU+e2xPbOUQTvoU8AFlnrqwKksfaOoi/5GkBTQ3hu/my5QfvCPAD9R4PS1kd+XQL6s8za59WBz5zdQVrUYNvlcHg01d/8IarT0Ilu4LRpDnBK34/2ZgmGn3Z6z/c8KhTu9oapUonzqQ6LkRI587RQ2E63Fuz+8lYdHAKwiRRpQlTstj8Tf4WiUJMG6b2Lxh7rL58SxmKR8ztnsRm+gOV9LhPQXuZh42ry340xhjD24LBTw7YRQ0CXAfO8PjpfgXwI97oyaPnPi5ABrv769mUuTFr+o8srTCxzmc+rTe0wDCepVwYzy7sf2i8g3XVybtWFmLAwhZKVggXoC4uBlhqxnAvp9YciGTA0k/kL2egi8eDoPUEFM30ILMtD/Rd+jWmRA1hWOFriS6ZUYplH4hOGlFX/o8jgtOOp9PXfNB3daIcvdQf6vgtgd9hVReCQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9185.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(396003)(366004)(136003)(376002)(346002)(451199015)(83380400001)(478600001)(55016003)(71200400001)(38070700005)(66476007)(26005)(52536014)(33656002)(8936002)(2906002)(38100700002)(7416002)(186003)(4744005)(5660300002)(44832011)(316002)(41300700001)(66446008)(8676002)(66556008)(66946007)(55236004)(53546011)(64756008)(86362001)(4326008)(76116006)(9686003)(54906003)(6916009)(6506007)(7696005)(122000001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?LHbYUp7h1an/JdLcgEDF9KGXWk/t+2w5AopwVejqy3xHHUn4QBzSNldWjk4L?= =?us-ascii?Q?Rj05NLbtvdUAFTljlGAFvUQ8EqpadyUlsaHIg3H39kHb+5eJrD5IQ5SUZhrU?= =?us-ascii?Q?26tBpyFM0UJjwNnYcNB+KVBQukfyMjohxONDJU0W2VPJeBBZWRctS8L2KV2V?= =?us-ascii?Q?Sj/k2HVMGehMxor392U4fX3MzPyrQbXjOgBYNqYlo85nYsoS1qMdazqyrxm4?= =?us-ascii?Q?gknHIHwXLAIHhOIn8S7BYL8sN5VjJ9npPWnaqH1Ek+JriB4CdRW83LpCJzq7?= =?us-ascii?Q?R1SBW6ayZvrdcdcb7gfa7Wq0mrBfytEI3EEouFfPsrULd9MJztMv+Co74xU1?= =?us-ascii?Q?LjI9bj7rIFFwkXLLkv9NGsLSRI9/Vcu5+JdmliO9zkg7XCbcSYimO4mYz2pS?= =?us-ascii?Q?YK2FjnLaC0N6aLPdGVX8KAT3dQv35z2aoGBu2ohU6g5IaO/MS2APAEjVVRU/?= =?us-ascii?Q?dHTw3sXKWOjS1hIfQWdMjW1znljwCsSWNfjWt1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lSrpjpzefnUZ1zZyeR7lLkXWAFfAwpLjemIeTxNyMQ5+2oBkIww7vCjRGao?= =?us-ascii?Q?b35w/y3GNOzqXHrep9dxjyMk8EHr3LJ2/8E1eeuXm5PF5qfbsEKlzpp9eW5K?= =?us-ascii?Q?hUfOWz09IIdomPJxIsy40KCz9Dh3/XYSDbKjJ1iyeWJLFmqvMAmireiT8+WD?= =?us-ascii?Q?h9z6ctThB0gvTnuZwkzyhiKWd/WAvUE68RvB+JyG?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9185.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ade864d7-cfd5-4a5f-7958-08daa31f765f X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Sep 2022 20:07:55.1003 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YjKCElEI6TXoEPYBdTK1fnlXOopfeHlNZkp5VRVWCI8VgdqTICmqNdTPR38MeQDXZXBDOJ/3x37J0SdmWVx91w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB8064 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 > -----Original Message----- > From: Andrew Lunn > Sent: Friday, September 30, 2022 3:05 PM > To: Shenwei Wang > Cc: David S . Miller ; Eric Dumazet > ; Jakub Kicinski ; Paolo Abeni > ; Alexei Starovoitov ; Daniel Borkmann > ; Jesper Dangaard Brouer ; John > Fastabend ; Wei Fang ; > netdev@vger.kernel.org; linux-kernel@vger.kernel.org; imx@lists.linux.dev > Subject: [EXT] Re: [PATCH 1/1] net: fec: using page pool to manage RX buf= fers >=20 > Caution: EXT Email >=20 > > -static bool fec_enet_copybreak(struct net_device *ndev, struct sk_buff= **skb, > > - struct bufdesc *bdp, u32 length, bool swap= ) > > +static bool __maybe_unused > > +fec_enet_copybreak(struct net_device *ndev, struct sk_buff **skb, > > + struct bufdesc *bdp, u32 length, bool swap) > > { >=20 > Why add __maybe_unused? If its not used, remove it. We don't leave dead > functions in the code. >=20 I was thinking to remove them by a separate patch once the page pool soluti= on is accepted. Regards, Shenwei > Andrew