Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp982347rwr; Wed, 3 May 2023 08:41:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6BjZD2R0MXkwFDI2kKGCCn9WcEW7HU1ufVmc7LvEnT60rGQMDH3krWmYrGXAvXN9OQiE6D X-Received: by 2002:a17:902:ecc5:b0:1a9:465c:6802 with SMTP id a5-20020a170902ecc500b001a9465c6802mr8045792plh.5.1683128487902; Wed, 03 May 2023 08:41:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683128487; cv=none; d=google.com; s=arc-20160816; b=EAJHZj2hGt+a5cNuwp3MEPQVP6fWKxhF7SFN+tk8fSStHL5fHdDShPuwvEEx/CLHK+ b7KSHXRWDfp2PC6NA9BAWmnz1BOdrpLTuQ4RE+3b26doiF4wm93WN/alP6B5xmqN4eF/ LHMpmCrbU+QnsqH8uCTLxe4+xCkbApxopXDBSIUjfKkCGsGMD3O4b2qd4V+o0vzqXqVK HwGzoqeQkVATsH67ojEfY9hlwi9cJ+Ubr1ksJ7SqJ77sPiXBjrQciCXOtx6z7jYzhwAf yR7Si5fYsTjvADEURR9+A6Cby55NOalNC2TeKUw8EG34naGtVrELZMgcMWJhUXaEfd3R vtVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FNP31hGNXcAYZKdIkNfq3iyD0TZCV0wQDMIOAN4Dopw=; b=BV3N/AgGdFvKPXYahRJOnQWevE84wvy/HMFWFMyTvMWIxBH6rzdDXX6aHrgbQV/P9F R1blCZ2yeBpOLTFYcea1QgEReqkJStFSY6xKWD+Qkrcr8Smx3rswOYjg6jr0iUd3pXwX nhsjZkC75KrtLj9l8b8ZTzjsbbRHz6h2L0pANmo45UGArUf9MhJvnm1h1hD9MoUUh/yi vU+ENgnmffzwuVZVRDRDcEv1sHs+Li70Xk225dbeplr07zMXtz8zTNM96GnzvXxR7oog u1oGDmCmylFyGNAKulOxT1J4XCZotPHrCfC0ScEmqSENMvOOOqnaRU9eg+sefRIY34Ij owLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iyO9bcnV; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a170902d50700b001a66bec3ceesi36991783plg.256.2023.05.03.08.41.13; Wed, 03 May 2023 08:41:27 -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=@kernel.org header.s=k20201202 header.b=iyO9bcnV; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230498AbjECPe1 (ORCPT + 99 others); Wed, 3 May 2023 11:34:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230486AbjECPeZ (ORCPT ); Wed, 3 May 2023 11:34:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B903449B for ; Wed, 3 May 2023 08:34:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D5A0C62E5E for ; Wed, 3 May 2023 15:34:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B3EBC433D2; Wed, 3 May 2023 15:34:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683128058; bh=gkPd8aDQYb0daSvr4xmJ+11gUtz98UqLKYxVlN45ATI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iyO9bcnV+KsXcw5bg/cfFOEme1bnL7xc7MqPEXbMOUKtzM88oLWUsrPhUrA4voE0V K8bSrgyvRO5/XAoIIjykJHQx6y5VoOAtx2XrmHWOTuG6wH1RqokcSnkMHKmzWciqvk loE+0gnc0T7JWHrNoaXPWKI8d48lL4KCtBzmHU32qFzPCdxiVTHD/gU9yWoOtlf265 AKOjBxNLLtLlu+e8e5+Xd3LsNqu7sPzI31Ar+fpl8OY5yM6+Uu/CthGjp2ElBXHeAT w5Of+AkRLiDPnKObpfEvA20SVksC7mI25EE9zSqtqQfaM+dUpaxuNiL2dMfuY0DSM2 D/i0/sVVkgnRQ== Date: Wed, 3 May 2023 17:34:12 +0200 From: Simon Horman 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 functions to avoid forward declarations Message-ID: References: <20230502220818.691444-1-shenwei.wang@nxp.com> <20230502220818.691444-2-shenwei.wang@nxp.com> <6dff0a5b-c74b-4516-8461-26fcd5d615f3@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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. I think a good plan would be, as I understood Andrew's original suggestion, to: 1. Only have patch 2/2, targeted at 'net', for now 2. Later, once that patch 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.