Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2357643rwb; Thu, 29 Sep 2022 09:11:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7CITtg5444wVgsSUwPclDP2divGJRd9qQpTpcy0IXNPJ6wz1gViQyykMAc3jc0C3SYs2+N X-Received: by 2002:a17:907:7203:b0:783:6e65:c0c3 with SMTP id dr3-20020a170907720300b007836e65c0c3mr3269292ejc.227.1664467878497; Thu, 29 Sep 2022 09:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664467878; cv=none; d=google.com; s=arc-20160816; b=MYFPUoIuGGwNmcU/qGOWGtcE/mJdHS4WLWZurHtuyVITNOai6HTWjzwLxvd3ehzqF2 U5CjKbWxUwhzarAbOD9Os/YY7zNEqNcr5nXxLig8egZM2M5P/YpRzWBgdTy2VHLZ7Ef4 gaiLbbWSJUUSuDYKvCsSGkPTon89LagM25ucU2KCZNlo0WjE0FsIYPCPW6IggYWUd6xm pC98MgyZ9CKxBB5R+Gzmkb1An/PcCXrtwpzmylO0tiAxR88dF1oLSwO+KLPJOJ1G8uUm tCA4yIr3Pe0k6a6ks6I5A7mGQ4IX1otKrLTfgHTcC87YdDQTNpKdp5AVKPV4QHJwdlGz 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=gihPt2bKu+pozhoRu7JQZyvc66MP3qC1ZK9A68zwRwM=; b=bVWVnabBv48XuXDyvt95xpOaQnFi5TmN6VcDy65F6DhU6Swy+vzS/AgXE4LjXf5sKr gYqXqGsfcuj4+yE40dWjEf6MpcSp4KcC9MIsm71OqJNgIa7RLFhr9JrAg0NrmjhFmEKB XJoQhjcZ0KrikXDUwTCoXNjDJhD8FBAESzM6ZKxgOhpK3V6MbVjkbobHb8b9slAJNHZl IO/gVjhcXoeVURT5o60m164Z4GinSVzbI64qaoJyIuZMta0lnQ9z0isvRdso+yRw0Ptt wi4HQ3aBtQMrQcO/0Y4P/bkOZHUlMTy2w49yqFlGGfJZ2R8B6aJxiwLRCG5eNCJ0/cky ivNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=1wW7lP2T; 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 y9-20020a056402270900b00456b734ceebsi8771542edd.436.2022.09.29.09.10.51; Thu, 29 Sep 2022 09:11: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=1wW7lP2T; 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 S236046AbiI2Pll (ORCPT + 99 others); Thu, 29 Sep 2022 11:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236013AbiI2Pkq (ORCPT ); Thu, 29 Sep 2022 11:40:46 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B31CE38442; Thu, 29 Sep 2022 08:40:11 -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=gihPt2bKu+pozhoRu7JQZyvc66MP3qC1ZK9A68zwRwM=; b=1wW7lP2TaDcg9AXO2Kk7JN4pM6 jlDCOUAAun4zRV8fj8m0ZNgD8QauQO8aR/FcAX9UATuNp31jlKfcsweulrmO+AFYbGT6dKvwxPumA GVqkn8lIruIaHI7Z1iK+np15l27nHFGf/kZ4mALioayC3Ro4mQlWtwFb++KVM6p3YHhE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1odvdk-000d5U-OT; Thu, 29 Sep 2022 17:39:56 +0200 Date: Thu, 29 Sep 2022 17:39:56 +0200 From: Andrew Lunn To: Jesper Dangaard Brouer Cc: Shenwei Wang , brouer@redhat.com, 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: [EXT] 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: 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 Thu, Sep 29, 2022 at 05:28:43PM +0200, Jesper Dangaard Brouer wrote: > > > On 29/09/2022 15.26, Shenwei Wang wrote: > > > > > From: Andrew Lunn > > > Sent: Thursday, September 29, 2022 8:23 AM > [...] > > > > > > > I actually did some compare testing regarding the page pool for normal > > > > traffic. So far I don't see significant improvement in the current > > > > implementation. The performance for large packets improves a little, > > > > and the performance for small packets get a little worse. > > > > > > What hardware was this for? imx51? imx6? imx7 Vybrid? These all use the FEC. > > > > I tested on imx8qxp platform. It is ARM64. > > On mvneta driver/platform we saw huge speedup replacing: > > page_pool_release_page(rxq->page_pool, page); > with > skb_mark_for_recycle(skb); > > As I mentioned: Today page_pool have SKB recycle support (you might have > looked at drivers that didn't utilize this yet), thus you don't need to > release the page (page_pool_release_page) here. Instead you could simply > mark the SKB for recycling, unless driver does some page refcnt tricks I > didn't notice. > > On the mvneta driver/platform the DMA unmap (in page_pool_release_page) was > very expensive. This imx8qxp platform might have faster DMA unmap in case is > it cache-coherent. I don't know about imx8qxp, but i've played with imx6 and Vybrid, and cache flush and invalidate are very expensive. Andrew