Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4138001rwb; Fri, 30 Sep 2022 13:29:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5saBHSpRtsLDu2SxiPoakI5GUYPUxdvTdtk+5UgsMWjZdN1VdrCKNa/6eB4pL/L7mN8Lgn X-Received: by 2002:a17:902:850a:b0:178:b276:aab8 with SMTP id bj10-20020a170902850a00b00178b276aab8mr10590876plb.15.1664569748535; Fri, 30 Sep 2022 13:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664569748; cv=none; d=google.com; s=arc-20160816; b=oXvZKOHRVnugTPXe+tv3oDMBW+r0I143ceqNAl93kzhVCcFgEP+9/7GAXvyylWlvYn QPUQB+GcTPKWic5+CCSA/p8CuGUrQ7bz4of9TdmHrzyRX3z6KYJ0TuSzryvoMbLWw1tK Xpz0tbwDyd9++Ma6lmtpyOgBqrKY1NQDvq+uLjDrlsrl29a1Lvl7XDnBudu111hjcdEm R4Qc3QMOJzSZUY60xKVB/Bv+QFGvHtkTM8Ul/909djkgae+HVzK+ttEWT8iBv0/YdX9O tFJMcqmHOcoXthlClRT6ZfFk2W56nExIURAKodynwNxTAs83QE1HbZaja8x4Rwbijiu9 AkUA== 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=HVFeev+r4ciAxUb+L8nvnXlf+hUS/MMkb8+sfY/tSPg=; b=lPmEs5SnhuAfSNgWb1nDAma4/dh71fuMxFJyr1hVZw+ISojDfWx4zH/0Cq3NG+fsCz PwWArUNNSPnl7cBSK7JJ2M3MViT7l4Okn98f4q8Ld4len4xGxdIAodgOyrDanzptWjB5 UHNKwo3toDO4IFlD46wwWxebvFQ89H3EbjffVwH5qoBRl/P3kuIDIn6JSmbqEhc0U3dZ WARGGUF5Jx2Dz4IODk/UTm2FVG1ug0Y6Kg53/C7S8TVgyGbnqiSMrKfExl2RaYeZzXlZ soGK2Ofc759LrZy98lQlVbcdllLDuronOdLramHOAt+ddF177Iq4W0y9nhPLidHndxlm UN+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=WT0DH79v; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j63-20020a638042000000b00434c6530f0asi3503958pgd.625.2022.09.30.13.28.56; Fri, 30 Sep 2022 13:29:08 -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=@lunn.ch header.s=20171124 header.b=WT0DH79v; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232223AbiI3UUg (ORCPT + 99 others); Fri, 30 Sep 2022 16:20:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbiI3UUb (ORCPT ); Fri, 30 Sep 2022 16:20:31 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0AEB3AB10; Fri, 30 Sep 2022 13:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=HVFeev+r4ciAxUb+L8nvnXlf+hUS/MMkb8+sfY/tSPg=; b=WT0DH79vR5MYl3Pz2SmQjXQDMU 243BGW/7yFek7ee8PqwJLil1W6xgSFwtSa03yP+uBB4hVWovfuQQaTO6l7oe166HLrx2HCPYaQ68I lfBSKzQQGhMLUjLFbtsYuVrHSqJLPJ3yBfal0iwS0OOTMDV96kc9C4wHwn8No+5zAea0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oeMUa-000k1l-46; Fri, 30 Sep 2022 22:20:16 +0200 Date: Fri, 30 Sep 2022 22:20:16 +0200 From: Andrew Lunn 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: Re: [EXT] Re: [PATCH 1/1] net: fec: using page pool to manage RX buffers Message-ID: References: <20220930193751.1249054-1-shenwei.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Fri, Sep 30, 2022 at 08:07:55PM +0000, Shenwei Wang wrote: > > > > -----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 buffers > > > > Caution: EXT Email > > > > > -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) > > > { > > > > Why add __maybe_unused? If its not used, remove it. We don't leave dead > > functions in the code. > > > > I was thinking to remove them by a separate patch once the page pool solution is accepted. Then say that in the commit message. The commit message is how you answer questions the Maintainers might have, without them having to ask. What is small packet performance like on the imx6? If you provide some numbers as to how small the reduction in performance is, we can decide if the reduction in complexity is worth it. Andrew