Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1418277rwb; Wed, 28 Sep 2022 18:48:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6P7wlTCyyQXhpHKBZyf3YX/M/PGK3yGo1u+9zsOWRveL4UcZKn1OljicxdqwmXBSr2IzhT X-Received: by 2002:a17:907:a0c6:b0:783:88a3:55a3 with SMTP id hw6-20020a170907a0c600b0078388a355a3mr658245ejc.648.1664416098405; Wed, 28 Sep 2022 18:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664416098; cv=none; d=google.com; s=arc-20160816; b=zRnGLSxJnHjZKIjU80jQGAPVIyKsygsgJlnpSILTzyNDhlujLnf7Z48m34J7rvKIAp /qh35MrLNQI3254szQIOQTHWS+A/nA1Eczqvh7bEE5q6oVUQGOEeevKCSuyd79Jsqexh 3V8TLpfo8R7+EkKlCATPtvhDwyP9rfWIa7IAPIIbGpoffzQDvi8EKg1F+i6NEfNhOHWk 1BmzNF2jMBfrZ8PezKEoh1QwiHUQU8AwifYclWJLdYqGRayNQibF0DWC/Wga+SzxzBAe FxtyntHC1Tbud+eUjc0pRoa+Pb+D0zSSkAX3vGAy7bSEu8yWYcJFbY/Pk+rF/IYbHJX1 GTfQ== 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=WgYp4kgX3yzN0Gagvg7OxRHJp7EnJoIu8HNLaefuSRI=; b=gir3RfZfwfE6HauahRA3g/LwfEH9Xc1YpKxsfkXFdi6SabWt6Kd3jV232eVuyFePwf /xXpahQv9ELP+qQelVKd6wxZGut2HF1Asgg7dRPYOAJYlV+tzKrS2iQz33G3PWnOLS33 zoRdZQLLz4Ql9JeDn8QQjEjuyuJb8r12kyb71DsyHW4H6rJE1NN/T48NKkXhFehhKB88 hJ2jd2dtB48ZHLLipGBUz1mww7bCspydiKB5HHQAo4xKDWQJTuJKcwySh3IJ5f0Qofig F/sdzgdWodHXH8NW0SQ8LObslR436Pn8odrycJ/UbuAjmJy+MaeOMqbpYkNLSiiFjEzW JuCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=prISs92i; 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 cw20-20020a170906479400b007879808e995si3388330ejc.55.2022.09.28.18.47.53; Wed, 28 Sep 2022 18:48:18 -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=prISs92i; 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 S234478AbiI2Ben (ORCPT + 99 others); Wed, 28 Sep 2022 21:34:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234496AbiI2BeY (ORCPT ); Wed, 28 Sep 2022 21:34:24 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2F3C11D618; Wed, 28 Sep 2022 18:34:21 -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=WgYp4kgX3yzN0Gagvg7OxRHJp7EnJoIu8HNLaefuSRI=; b=prISs92iTwutWRn1Fm3DmUw5Fu 2U1o9LPTgITB8C9gSMMzmcb6DqZMsRADRVEJj4aFKKRt0R0FzPKI/zcCb+2NGvNLIt2Qx12R0YvsM 2JRT1Oz+2pY/9iqN5VCfU5Qwg35TmA7I1TWmQUsBM25IdKKw2LAC0dkRxlFkQFQ3R0xU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1odiR0-000ZNQ-DM; Thu, 29 Sep 2022 03:33:54 +0200 Date: Thu, 29 Sep 2022 03:33:54 +0200 From: Andrew Lunn To: Shenwei Wang Cc: Joakim Zhang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: Re: [PATCH 1/1] net: fec: add initial XDP support Message-ID: References: <20220928152509.141490-1-shenwei.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220928152509.141490-1-shenwei.wang@nxp.com> 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 Wed, Sep 28, 2022 at 10:25:09AM -0500, Shenwei Wang wrote: > This patch adds the initial XDP support to Freescale driver. It supports > XDP_PASS, XDP_DROP and XDP_REDIRECT actions. Upcoming patches will add > support for XDP_TX and Zero Copy features. > > This patch also optimizes the RX buffers by using the page pool, which > uses one frame per page for easy management. In the future, it can be > further improved to use two frames per page. Please could you split this patch up. It is rather large and hard to review. I think you can first add support for the page pool, and then add XDP support, for example. I would be interesting to see how the page pool helps performance for normal traffic, since that is what most people use it for. And for a range of devices, since we need to make sure it does not cause any regressions for older devices. Andrew