Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4133074rwb; Fri, 30 Sep 2022 13:23:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5HUANGPRjyvAfiZBBt+6iLc4Y/7bWx2ZthUKHboMW6q+i9u58pvx8jUVGDZWMUsfjWHb6I X-Received: by 2002:a17:902:ef4d:b0:179:c125:4dbf with SMTP id e13-20020a170902ef4d00b00179c1254dbfmr10288139plx.31.1664569399599; Fri, 30 Sep 2022 13:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664569399; cv=none; d=google.com; s=arc-20160816; b=MugrAey2hxqEp23HLFvcaMZwDOFU9HAOf6p26Fsjrr1qP0u7D8t9belMfeG3/k8kDx ODhdzy32LQ9DZkHycViDbiFkW5eJ6CVhgmuU1D3Jy4QZ7U4k8r0/0hMwt4O0SKUzCc7c 3tZVb66NuRNlybo8CrUxOmcRrXA9Li6mQZ5drfvil97TWi3kLrcK78quR7bP/fPiZq9a Urp5UJ/p1Up1lAemKMrvbg33v7nk7v5yGa+wTDKrJB9BYS3PZfTA4uVp48uPjCTKycym 6ebCdQtXwKFnEI7vBWdNNNLW/0oTNLwLzo+In9krPVVckRYPWrV2cedTjmbg9leJzRnT uisA== 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=pnHQZ9rBe55rnctqBA3woeObnRsQg9T9AOmpTNE1wGs=; b=RKXYKzf7wa/uhNqYSfXTUi9YAuFGG2xGZ9REdny0pf4sxzM7RiFp3mTCgWQ1a7Z5Zo fx0AM80M5ycTPgbXXMjX8+ZuAxPJ6cDs2xc0n8ZNsIuFrja+AnfSblXhSZEnCw2YfQWF s9rJVyemnEDyQtqcY2jEXfQgZt9PFIvXyf9mPtixRksirL7wPlQhP+5xNIWguTP81fNn nUq4pQ/nsuLJqdg30Ub20LAEOcAbTwK9NLUhwg9uxxDp3uwoU5j4y0D9fOeBUSE0p5Em 2IK0Lkd5SsTovehqZCbFZ/Tplyzp7C2IhDLAeFfrX97VQs/PhUBDvDP4EbqdmgISlzZq JNvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ToODwlkn; 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 g13-20020a17090a708d00b00200a44427ecsi3327230pjk.100.2022.09.30.13.23.08; Fri, 30 Sep 2022 13:23:19 -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=ToODwlkn; 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 S232005AbiI3Twb (ORCPT + 99 others); Fri, 30 Sep 2022 15:52:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231946AbiI3Tw3 (ORCPT ); Fri, 30 Sep 2022 15:52:29 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0796A1A6EB2; Fri, 30 Sep 2022 12:52:26 -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=pnHQZ9rBe55rnctqBA3woeObnRsQg9T9AOmpTNE1wGs=; b=ToODwlkniUi0GLmBg2vrxa6hQ5 2RP3Ewop11YiW6MkKFSuV8+H8snyofHw354kmo+vI3zQQGSsENm6VwHIJwvzaQ3nbd434B2JveNdp M+TyZHziuptI5JTS956k/Ue00V5FoYuP7JRV+tAk3aQIZ356xdBYSFv5h2SWd5plzLEI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oeM3G-000jo6-34; Fri, 30 Sep 2022 21:52:02 +0200 Date: Fri, 30 Sep 2022 21:52:02 +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: [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: <20220930193751.1249054-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 Fri, Sep 30, 2022 at 02:37:51PM -0500, Shenwei Wang wrote: > This patch optimizes the RX buffer management by using the page > pool. The purpose for this change is to prepare for the following > XDP support. The current driver uses one frame per page for easy > management. > > The following are the comparing result between page pool implementation > and the original implementation (non page pool). > > --- Page Pool implementation ---- > > shenwei@5810:~$ iperf -c 10.81.16.245 -w 2m -i 1 > ------------------------------------------------------------ > Client connecting to 10.81.16.245, TCP port 5001 > TCP window size: 416 KByte (WARNING: requested 1.91 MByte) > ------------------------------------------------------------ > [ 1] local 10.81.17.20 port 43204 connected with 10.81.16.245 port 5001 > [ ID] Interval Transfer Bandwidth > [ 1] 0.0000-1.0000 sec 111 MBytes 933 Mbits/sec > [ 1] 1.0000-2.0000 sec 111 MBytes 934 Mbits/sec > [ 1] 2.0000-3.0000 sec 112 MBytes 935 Mbits/sec > [ 1] 3.0000-4.0000 sec 111 MBytes 933 Mbits/sec > [ 1] 4.0000-5.0000 sec 111 MBytes 934 Mbits/sec > [ 1] 5.0000-6.0000 sec 111 MBytes 933 Mbits/sec > [ 1] 6.0000-7.0000 sec 111 MBytes 931 Mbits/sec > [ 1] 7.0000-8.0000 sec 112 MBytes 935 Mbits/sec > [ 1] 8.0000-9.0000 sec 111 MBytes 933 Mbits/sec > [ 1] 9.0000-10.0000 sec 112 MBytes 935 Mbits/sec > [ 1] 0.0000-10.0077 sec 1.09 GBytes 933 Mbits/sec > > --- Non Page Pool implementation ---- > > shenwei@5810:~$ iperf -c 10.81.16.245 -w 2m -i 1 > ------------------------------------------------------------ > Client connecting to 10.81.16.245, TCP port 5001 > TCP window size: 416 KByte (WARNING: requested 1.91 MByte) > ------------------------------------------------------------ > [ 1] local 10.81.17.20 port 49154 connected with 10.81.16.245 port 5001 > [ ID] Interval Transfer Bandwidth > [ 1] 0.0000-1.0000 sec 104 MBytes 868 Mbits/sec > [ 1] 1.0000-2.0000 sec 105 MBytes 878 Mbits/sec > [ 1] 2.0000-3.0000 sec 105 MBytes 881 Mbits/sec > [ 1] 3.0000-4.0000 sec 105 MBytes 879 Mbits/sec > [ 1] 4.0000-5.0000 sec 105 MBytes 878 Mbits/sec > [ 1] 5.0000-6.0000 sec 105 MBytes 878 Mbits/sec > [ 1] 6.0000-7.0000 sec 104 MBytes 875 Mbits/sec > [ 1] 7.0000-8.0000 sec 104 MBytes 875 Mbits/sec > [ 1] 8.0000-9.0000 sec 104 MBytes 873 Mbits/sec > [ 1] 9.0000-10.0000 sec 104 MBytes 875 Mbits/sec > [ 1] 0.0000-10.0073 sec 1.02 GBytes 875 Mbits/sec What SoC? As i keep saying, the FEC is used in a lot of different SoCs, and you need to show this does not cause any regressions in the older SoCs. There are probably a lot more imx5 and imx6 devices out in the wild than imx8, which is what i guess you are testing on. Mainline needs to work well on them all, even if NXP no longer cares about the older Socs. Andrew