Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1219036rwr; Wed, 3 May 2023 11:45:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ74Ay7Qo4yWUPx2uaGyCqB0O0jsyIug06Ljhw82GGHjS2+1OCCVaOpMfpV4/AlfRKBfzN2y X-Received: by 2002:a17:903:44c:b0:1a7:a541:742a with SMTP id iw12-20020a170903044c00b001a7a541742amr933283plb.28.1683139542462; Wed, 03 May 2023 11:45:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683139542; cv=pass; d=google.com; s=arc-20160816; b=m003yK5/fpOBTEMFtmDupu46SBPJt8RwBOl70vlCUSxClCegAUoRx3ueQmfxU7eini I07BDQdh3ROz9QCD5qu9rAaviICUu4O0wpdB9kNGgQlpqqXCXEd6upv9kLoccEfi1yPY DefGneVUMyvXAy1DRRmDB+BsGBzJWiX0E+xuecXxFiJDw7TfgmE2j6m0CeFPJbobRW3A vwLxEANxss6leoWfY18PMfAfIT7RwDxYdi+WXCe4T9UUYZgafRYKcVr3i4yJ+yE4ajA3 zx0s+FsU3OWNgW+M3R1YATVQTODqtCbVCx+zQwR+gxs6GK3XEUGyNPV9lJrZE+e8O5yO RRhQ== 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=KTo9T8Qu7zgy6rlXIueIoC1T01Qg7AwmeeQ19y3EDp8=; b=ecumVKrmEbGgnLqbWVTLR5+fg/jLX7FxIszMUWBtdKE23ewQ4+OPuVlikKVGST8g5L KJw9KR2kNyBTk2uZPNkpL10eFwEpyx2qYoKp/eXNpMILCcF+jpGwwPlvEV6lNh9i5A1N pZesFKsHRtLuGVBYCTdNTTKJs8YMrSWS/RiAjdB4aSKfoXk8JxL1O1qQWujnjSBdXCeF l4ec6x4GmplTJFe8wsOnFf/ieWHuhisFH9EsugRXZZHvFhVsBXu2/peNlYzsxPe7HXoy lE4s0CucYghzBwLxDORXSiMGd9mfv0QRigPLxhxLvvFxarbFvBcKl9jIAAhsgpz/rvMe JGDQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=l9xlEF8Z; 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 c24-20020a63d158000000b0052856ce370asi22686707pgj.426.2023.05.03.11.45.29; Wed, 03 May 2023 11:45:42 -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=l9xlEF8Z; 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 S230146AbjECSpI (ORCPT + 99 others); Wed, 3 May 2023 14:45:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230200AbjECSou (ORCPT ); Wed, 3 May 2023 14:44:50 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2056.outbound.protection.outlook.com [40.107.20.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74FFA83D0; Wed, 3 May 2023 11:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ttyx6Q0vxEGRbFFz9rMZ8RL6bog9DvxuMMGY+bDTM8c8w9LW0cLD/bckP3GHw4/gWYHsPZ7nGpkhbf9oo2AZN9xn0f0mqcGlcbG6u49yGfxOQ3hzeCbBgv/1+szhOUQ2tCYo99H93ZOX5cPHW1XnaujY/R9tOFmHrylKq6hZnHaYBhySTY3puhpaJRjWCGBSWNIyWwO7fQYZX/HRTHdh6xHfgwH3PwxbLSzaihMcPT4BV9cSkpjPhw8l8LHM2FP92b9Ctmo+LW/ex51gZhZEiGMW3Tez7U8QI4BboNyzDqnYxwZKRNtDKw1V+7hZOMouse1ar+pRXx2HqzdLUfd/6g== 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=KTo9T8Qu7zgy6rlXIueIoC1T01Qg7AwmeeQ19y3EDp8=; b=hurRSOo9e+SPz9HKxpo+/Z9apNRGoNVqzgtHz7XazfL6gzzfEiMm34gdL6wJuQx0PFa9cpGJAFXlkkZAHo+VNyusa3bsELFmlO+TSoIKb8ovKKrX/hds6kvvVKqbctrqr/qxx9ovPx33ypFDf+qyWktmgf3cZloxXQLSlHftl6mf7oj8PbkYDRbgkUeIaiYsrcSs2jv1u2nndoPMmVC04SYKpyWoa13FCRyr93yigk/Y+074LjB909mqQx26zQ6ozl2OHr5pxKpSdR3leOvSvmfGGqhjDCFkAE75yhj7wGOzbZaLNdSMrTVjZokJ3vSvs38hiW0pI8wyl31LVLdrjA== 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=KTo9T8Qu7zgy6rlXIueIoC1T01Qg7AwmeeQ19y3EDp8=; b=l9xlEF8Z1wBb2bQ0i+XK6XaKkVEikM69+4VjCmnbuqtNnpj0Bgmp7bvXUVN77F8yzSP8p4IPaZj5aJ5UkYy7woESZr2HDiP26rg3V2sXF8qhS6jcBfm5WlEBKZ4xSHfBkvJ6YITGHrJ285MO5PB5vo2LscncbRRZoFlwro0oMf0= Received: from PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) by DUZPR04MB9982.eurprd04.prod.outlook.com (2603:10a6:10:4db::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31; Wed, 3 May 2023 18:41:59 +0000 Received: from PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::28fb:82ec:7a6:62f3]) by PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::28fb:82ec:7a6:62f3%5]) with mapi id 15.20.6363.022; Wed, 3 May 2023 18:41:59 +0000 From: Shenwei Wang To: Simon Horman CC: Andrew Lunn , Wei Fang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Clark Wang , dl-linux-imx , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Alexander Lobakin , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "imx@lists.linux.dev" Subject: RE: [EXT] Re: [PATCH v2 net 2/2] net: fec: restructuring the functions to avoid forward declarations Thread-Topic: [EXT] Re: [PATCH v2 net 2/2] net: fec: restructuring the functions to avoid forward declarations Thread-Index: AQHZfUKo4ZwVUtEG3EOjLFQNjL7Wpa9HnlQAgADiOCCAAC5aAIAAM7tw Date: Wed, 3 May 2023 18:41:59 +0000 Message-ID: References: <20230502220818.691444-1-shenwei.wang@nxp.com> <20230502220818.691444-2-shenwei.wang@nxp.com> <6dff0a5b-c74b-4516-8461-26fcd5d615f3@lunn.ch> 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_|DUZPR04MB9982:EE_ x-ms-office365-filtering-correlation-id: 239fdba7-9c92-4ea0-8928-08db4c061434 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7RJ60YtXuRJV9Kpdzqsw0hbjMlNxMP8lOio47MpW2XrqBprTjWpxyP1Mv78Af2kG2x4KHiyEgjmsNolB07WjtbZaIdwGheGz0ia7dQL48cys+AHaq6UF28yQCKEx2NEKhGtDbZVLFP9l86cSpWWY3cX1mhlKVgCPWxKd0YpOsLDYV7jWTmJS327xoZgjrqZ9Q+6d9X0kOw96byGaowoIfnIlMhjr/9ndLRHdwAQC4jNPSApYcoa1CVbQLanLmc40B+oEKc1wS0rwQqV4yj1Da7DTtcm/wih8Ng7xJGX3tYP3QfFuoK3kFIMiNRQmcslyESqjkUKtS3dSSZ+pLUBjwc/SFqL8C11UTyZrntRx6HbtoHDh9sOCei1z2FIQEL7DWV5+zvaBMDuKEwN6SnZQErpnFAv4XonV4XRjD4nIxN0sxJccs2tcbu9+i4WtH+o/5ni2y4uHfbmx7tETPn6M0NXgYGNGBAc+Lk8SR2IpFQENy4eURRjvoLa9YW9SoCBkB2KG0L8Sfy8QY5ar9UG4mJtsz/zd93LN320QLjlclbPGFLv672Sj+rf25H5JkYPMNTWfMPWPzhrOyxxb06k/GT2OVlYoDNsUaDygM4UOhiYwrbR+sjKCbtAEKjrWj+FI 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:(13230028)(4636009)(346002)(39860400002)(366004)(376002)(136003)(396003)(451199021)(26005)(186003)(83380400001)(54906003)(44832011)(6506007)(55236004)(2906002)(9686003)(53546011)(122000001)(7416002)(52536014)(66556008)(66946007)(66446008)(66476007)(64756008)(38100700002)(5660300002)(76116006)(8936002)(55016003)(316002)(8676002)(86362001)(33656002)(38070700005)(41300700001)(6916009)(71200400001)(478600001)(4326008)(7696005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?SbQp6nkj81I3eYbksvFva5xZ6YJT05pJdUiVnUfNziQnc/74m7v2BGUaPEaT?= =?us-ascii?Q?2XHfj/GIFTTiBVfAhfqkVG3zuSXLkg4vNv+fA95WWAjEu5Am6WWPEB9lWmEJ?= =?us-ascii?Q?EPKc/pLBFBteBUdx3hDIG6K1sOpQP5he5Fy3R58F6m2hU4tjBbcNcKNluUUN?= =?us-ascii?Q?m0uB0ER6C+T/vjW9ZVHZY/8b9WWqo8EXXDjxP1Zdja0z8BXqIvxEViIJWx+I?= =?us-ascii?Q?4sm3kI6Dz3bFslL/pqQPb5GgNg+gCpAYYRQ9zvsUb+2++V+ry1/Wmz8ndLK9?= =?us-ascii?Q?dpXbJWM/tSxvzbDo1qQ6TPGUmyq1t7tvUUkjJ0FnymuvqVoIspWcQ1mMllgi?= =?us-ascii?Q?BZWEEe4jdeU25pWsrJVy1roomKc/HhOuS+bLg+F9HtkBmRvKz5dnhshUbSw4?= =?us-ascii?Q?a//az8/znkP2gLM3+PpgqHhj5ief/15Wb7hl5mTHkdZgMGTCnmThAMJatkWx?= =?us-ascii?Q?9nyBHHuP+J44gwvY3UUSUYWrwTsHoUlMpxYPIh3pQAzWlXkFUBWToSCu4s/G?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W0TTavF6Uq1A0QaFjNaBhrBkIZt+k8h?= =?us-ascii?Q?zXrKtGvSvzJyrxt37HBdFFLKF97hi3m+rRice8PsnA2jpusYo1nhstHk4BmK?= =?us-ascii?Q?79ES/OWBfwrwQKU12pTXZ/BEwY4/ccNszhNwhSOjvE4tTexplYUSgDvW0Atd?= =?us-ascii?Q?beNddW1BoJKPbt2zhEwNc7jn9wSVtLINmcrjo+oo?= 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: 239fdba7-9c92-4ea0-8928-08db4c061434 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 May 2023 18:41:59.5233 (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: /NZ/93cH+pBCBx9Gb8f7QkLi1FLEP9DHjCsvh3NLkJQRlBbECRnOO1E5xHPjecIJc/GBypCMFeWxjQxH+rcjcw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DUZPR04MB9982 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,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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: Simon Horman > Sent: Wednesday, May 3, 2023 10:34 AM > To: Shenwei Wang > Cc: Andrew Lunn ; Wei Fang ; David S. > Miller ; Eric Dumazet ; Jakub > Kicinski ; Paolo Abeni ; Clark Wang > ; dl-linux-imx ; Alexei > Starovoitov ; Daniel Borkmann ; > Jesper Dangaard Brouer ; John Fastabend > ; Alexander Lobakin > ; netdev@vger.kernel.org; linux- > kernel@vger.kernel.org; imx@lists.linux.dev > Subject: Re: [EXT] Re: [PATCH v2 net 2/2] net: fec: restructuring the fun= ctions to > avoid forward declarations >=20 > Caution: This is an external email. Please take care when clicking links = or > opening attachments. When in doubt, report the message using the 'Report = this > email' button >=20 >=20 > On Wed, May 03, 2023 at 12:53:57PM +0000, Shenwei Wang wrote: > > > > > > > -----Original Message----- > > > From: Andrew Lunn > > > Sent: Tuesday, May 2, 2023 6:19 PM > > > To: Shenwei Wang > > > Cc: Wei Fang ; David S. Miller > > > ; Eric Dumazet ; Jakub > > > Kicinski ; Paolo Abeni ; Clark > > > Wang ; dl- linux-imx ; > > > Alexei Starovoitov ; Daniel Borkmann > > > ; Jesper Dangaard Brouer ; > > > John Fastabend ; Alexander Lobakin > > > ; netdev@vger.kernel.org; linux- > > > kernel@vger.kernel.org; imx@lists.linux.dev > > > Subject: [EXT] Re: [PATCH v2 net 2/2] net: fec: restructuring the > > > functions to avoid forward declarations > > > > > > Caution: This is an external email. Please take care when clicking > > > links or opening attachments. When in doubt, report the message > > > using the 'Report this email' button > > > > > > > > > On Tue, May 02, 2023 at 05:08:18PM -0500, Shenwei Wang wrote: > > > > The patch reorganizes functions related to XDP frame transmission, > > > > moving them above the fec_enet_run_xdp implementation. This > > > > eliminates the need for forward declarations of these functions. > > > > > > I'm confused. Are these two patches in the wrong order? > > > > > > The reason that i asked you to fix the forward declaration in > > > net-next is that it makes your fix two patches. Sometimes that is > > > not obvious to people back porting patches, and one gets lost, > > > causing build problems. So it is better to have a single patch which > > > is maybe not 100% best practice merged to stable, and then a cleanup = patch > merged to the head of development. > > > > > > > If that is the case, we should forgo the second patch. Its purpose was > > to reorganize function order such that the subsequent patch to > > net-next enabling XDP_TX would not encounter forward declaration issues= . >=20 > I think a good plan would be, as I understood Andrew's original suggestio= n, > to: >=20 > 1. Only have patch 2/2, targeted at 'net', for now 2. Later, once that pa= tch has > been accepted into 'net', 'net-next' has > reopened, and that patch is present in 'net-next', then follow-up > with patch 1/2, which is a cleanup. So should I re-submit the patch? Or you just take the 1st patch and drop th= e 2nd one? Thanks, Shenwei