Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp758951rwr; Wed, 3 May 2023 05:56:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ78NDgj6bfIpCgBZY38BrnQh2hWo9wYiaaTiazzsIGOzJ0sIkUSL+OBmOx1Le6rCfVya4/J X-Received: by 2002:a05:6a00:15c4:b0:63d:24c0:1223 with SMTP id o4-20020a056a0015c400b0063d24c01223mr29776175pfu.29.1683118610565; Wed, 03 May 2023 05:56:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683118610; cv=pass; d=google.com; s=arc-20160816; b=xSK1gxSNkbJe9ZboBTlEkQ/60LFQeBCgIHQB7fjfLA6IIdkvwCOXHEjepa43JRbOns i4fON1/ilB0InG+9+VXTyKcKCtBmrS8BZQpsxWnvTn327VsAc/l9qlW/FruZxl8i5TAC ISPx/NF6gbdFCVpnvo0RAGpbjQnd8VebusxFC/qXUGh/O4zvqMZ3A0SXnmUkjh3e/wXG C4kZYujHBoGyELinoHhCwWiMeEMQ2NJqrjK4CaI7n28Xzh4/9kyHJwNkIg8osu+X0qXX cuMZAE7YHZP529puLSgh+7qFYM/sGp6VsqInvXVq72wr4xGUZgou/lWfLOWivdz4EIpw Ko+w== 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=J1pegviFNKEfEYzKVHDkWuINnzcTFT4C4zjTceQhmVw=; b=TE8sVt2HXK2qqeY8RD7u7rgO9cPXLi3/+CwtXBiQpy/ZohptFWvr5J5H5XH50a8fbI kZ4zjQbDH5LCfWPb6mOVX+ViYm/ikcK3PPeAucAdeHggGgI8cLiMksktBrlBRykz6jCv oMSnvRCO8+Hoghn8eWr7r6iDkJSZyywvWBjNow6OVrl8qfQ/h5DEB9QUH67IjI+yuw12 nmdOcEG4MRqcYRfQUKt/USuSp/jft+SwhksV5xNEovtfEUAfXjwOQAGMsls/Cl/0Vjat 8Yqo+X5iKB9dMCKTy1QlPdSgJkUSs63cCzO8PEhc0tYfq9HdFt7I9oHAo6OjCSpKIMxR BChg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KPec+naJ; 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 x24-20020a63db58000000b0051b33c863ffsi33516368pgi.399.2023.05.03.05.56.39; Wed, 03 May 2023 05:56:50 -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=KPec+naJ; 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 S229865AbjECMyQ (ORCPT + 99 others); Wed, 3 May 2023 08:54:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjECMyP (ORCPT ); Wed, 3 May 2023 08:54:15 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2069.outbound.protection.outlook.com [40.107.20.69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3818A5B8E; Wed, 3 May 2023 05:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F7UZ5izzcMVwQlkdPsyEx7uKALNf5r3pWJpbQAFEKV5t91srspbno07nu+B7yAcoTmqJ5z956sQcN3aHYJQvdThvF5UksxwQRAudrF1qI07/e9YjYBfQ7YGH8BjGJS/EPQSGKehe5i21Uc8DVkbl9ypkh6XW+msCk9r/0GciEuy5gULKaVJZjHjzCTzTpfaaa6F6chTMfmiNBXnhQpcHPl9ffBB3xRK2XZXHDswV0Lk/GUA/IiIewVrWHuu495c2Boh+Fr+Hhd/R2+nEyhLv+X/WlsgZIrrENd8VphANTQo5K8aooDkeFNSpKRMG/BcChVQHCxE3p8JlMVYYrCmdjQ== 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=J1pegviFNKEfEYzKVHDkWuINnzcTFT4C4zjTceQhmVw=; b=MjHRvBjirbxy1H5z0Y0PTEVcqkK0AGRTDpC883A3luQypSSXf1bhfzPk8pGwpU3UaunUGGV8vRYfZ4JeM2Bc7t93tTz5gHrh6VlsMyyDE3ThSdd2E6at2n0HeyeUO9hAev1Y+m87Qou7X0uWFSk3KQPSq/2Bey6ecU5d4bANB8/UIXukX6BfJ45d1OiUDfexspe9rDholyqr2mdWga/egnwusaZLSGby5CPv3IVel85i+RiFhBJp/oyuJi5JefD51EXIuzuTswgPCYJGHbwDC7cH99H5GIti/g8Kfy+JNbf8tlZp0k0bTmTUCixdKNJ/fGL/rayvDqf3e667vqv0xw== 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=J1pegviFNKEfEYzKVHDkWuINnzcTFT4C4zjTceQhmVw=; b=KPec+naJHq32pPEgvaXGC0rB1ThvnkJIbJceSILIgOZJ/F8AE/5EWiWmoqhfpq4UJbPn1btHbwnazU//qfKprqUo/RMtCd6KU9f80UDkmOXfM0SMk9DYhckxjHtfbIaxDiLiGS7MXmleUgj7sI54bA0UdGDCKLVJbsyCFzYvON8= Received: from PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) by AS5PR04MB9998.eurprd04.prod.outlook.com (2603:10a6:20b:67e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.30; Wed, 3 May 2023 12:53:57 +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 12:53:57 +0000 From: Shenwei Wang To: Andrew Lunn 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: 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: AQHZfUKo4ZwVUtEG3EOjLFQNjL7Wpa9HnlQAgADiOCA= Date: Wed, 3 May 2023 12:53:57 +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: <6dff0a5b-c74b-4516-8461-26fcd5d615f3@lunn.ch> 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_|AS5PR04MB9998:EE_ x-ms-office365-filtering-correlation-id: 1c7f7222-0086-4257-ff4d-08db4bd57551 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NK5eUnc3NDeJdzED0JjyVcdLmfJNn8JaTzJHumsM2Xxrh5EBFQQj0YiO63KatzyeKtMg4/8hx8s4vwL3Q3yEqZC3iNohO/3TBnFeVh8sUkeXT4dMJZ8kbhUYeZuzugP5LWKP19JqwQVO6UxSPYCeU3u488M8iWZ3k5C+BshF7jwLZbjvDV2M4JCsQ4ejyDJvezZzxRmUF9EpP5zuX/v9X3RoRxs73oU7mqy6b+9L/dENA1Pp1POgLQHGC/DJ/TJA0WdytJ7f0yss+m7fmiCm0rtFzJKFOKc0kEvg9IWw3VFRZzb1qj+L8tQcZKTevhzqyYByF76xVWI9SK7XwiPQ6adxkfatToEKU7XgwAirSAhyEAbM752aOwH9BwRbNiZvZBusYKGJBgxnSdpQmzGWMWa9ZzXuJPUhvbi1FbTjdmEkD+iWYa9uBXutwngn9m4viAOXBsLgRslpUpp9ThfYXQiAREYi1G9/A3lkErT5E57cJWjA41ktH7wxexhkMD3hch8ifvMjnA+0a0UMwrOqECU+kmD5ioroc6X9EOo9tjRt/h3I1DB9Mrpz9STosRf1LxfOGDXEKMQ5PnVBfJzS3ptAjxijaczu62zkQzuNBFoO96kdvYwBUVxCjmLP9/AL 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)(366004)(136003)(396003)(346002)(39860400002)(376002)(451199021)(122000001)(8936002)(66476007)(76116006)(66946007)(33656002)(186003)(5660300002)(316002)(8676002)(4326008)(55016003)(6916009)(64756008)(66446008)(2906002)(66556008)(9686003)(53546011)(38100700002)(55236004)(52536014)(41300700001)(26005)(44832011)(6506007)(7416002)(478600001)(38070700005)(54906003)(83380400001)(86362001)(7696005)(71200400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jn2VxE1MgBcVsYfoLFXZ489C/gxCdrRgJTmgXJ9r1HMblrU8BTtCaHtOy2XU?= =?us-ascii?Q?ziJcuxZzwiqstisYo6UrbzwQRSIAPVZk3SFK8qUqiWVELyjA0+muFk+eY4XG?= =?us-ascii?Q?49JmJasyZqaNrZcyz0DEnss8D2La6ymeTPyp/gda5uIzNuMOU2RRHMTuBBDe?= =?us-ascii?Q?EhVVqJNsYfBoClaC5EYHqmbaqq1CG+Jwh7b/cTBM0UsTmw6V4b/BWLJLIeZN?= =?us-ascii?Q?8EIu5jfwXqazZTSfPKFeEQkrVAvKMreR5aXntfPCM/HkMJGAkiMCV8oQT15p?= =?us-ascii?Q?s0OfgGBit3lZRT1q7CcR/zQzpcAjP4C2Nq9sw+NlvsdBhGhNd09pV0hobe8/?= =?us-ascii?Q?YU3SOcDuhfg2BEO9WMexTyTk4cxljoEP9pPQL4cN5Bv9CffXWsMq1aHQpAAu?= =?us-ascii?Q?Y1DKDVaTq4gxUtazEKqVWtx6WOaAYifwRS3c2nO8ksm4PRg3kMAGCa2x0PyY?= =?us-ascii?Q?xNXiffXcVOBHvVLAXhR4JFGaJHr89rVO462wB0TzPxUNN6FKEdDg4isQ0fcj?= =?us-ascii?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DcLO8MJ3nHQIagzMC?= =?us-ascii?Q?+vOJt3ZC/DQgsQ1EpC602rHlb+UvluW0RPHW1IWKWTYsRUlpm+VzwQKqU1iA?= =?us-ascii?Q?O4SwjpD4riW1zGLKIwPVlo1ZRqEMIbhqvECaQecwVx7CJvEQMt7p3zMVfaf2?= =?us-ascii?Q?CjbOfR9d54lOZv/PvLpukXQj2Sylx8R/9tRNfwxK?= 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: 1c7f7222-0086-4257-ff4d-08db4bd57551 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 May 2023 12:53:57.1304 (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: 2FKcXd7ufU308xLFhr+YeGi+r7AxahnecrE0nTd/n/3KW0t+Exb5nvoUnBv5bR7+w1nTZmSxPsig5IZRAYTqrA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9998 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: 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 ; Danie= l > 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 functio= ns 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 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. >=20 > I'm confused. Are these two patches in the wrong order? >=20 > 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 bett= er to have > a single patch which is maybe not 100% best practice merged to stable, an= d then > a cleanup patch merged to the head of development. >=20 If that is the case, we should forgo the second patch. Its purpose was to r= eorganize=20 function order such that the subsequent patch to net-next enabling XDP_TX w= ould not=20 encounter forward declaration issues. Thanks, Shenwei > Andrew