Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2300046rwb; Thu, 29 Sep 2022 08:31:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5CUloRCHImyjXwXlVx/j8eaHusG5yEqTBXRbN54mIf1diUyyH1QeQteSnQajdQlSBfjwil X-Received: by 2002:aa7:c04f:0:b0:457:1b08:d056 with SMTP id k15-20020aa7c04f000000b004571b08d056mr4041635edo.146.1664465494474; Thu, 29 Sep 2022 08:31:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664465494; cv=none; d=google.com; s=arc-20160816; b=lXzC521yEUuFI7+pmFPWxQyCUe48+yD4YdnYbyFVFnbIKD5MJUVG8Brz0vuatA+vy3 HM2UEkWfPcvIMj2WcOvPOn+RYC2Dd8el+rYU8arAzySkaWAw9CvjmhZvmVZrxYlC7tOM 1JV/4z76TcwOtGKSa9XyuZZiqY5k6pqfy0hgZbtsUWounyrJ/knWtJhcx6L6TeoathY4 73uCBSEFLTs13FFTkl6yhkmPnFm+LkmKsU7ewZMiD7YtGuBm0HS5VCxvMmEeIyYcOi9/ /SGX8XKV8YerBFHKR+QeRGxUJbj4CIlmnHGKzcV77eLUKlgyeHeVW5byYj/4tlRFbJys d8uQ== 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=U7bbJF0jn65LRvA7kkp1q5XkbyDAHF1u73Vxz4VnaPA=; b=vnMA3uwAAhud8SAkGs+CerbYnTE2vQqOwhr1Wj/dCvGUkMheu2/WdALlYV2eHd8l4f gg+O5eN5rUA68Rz6gNOZj5unUcoZaC0/UsIEvw7mpszl2RnmS4Ldw8Y240kBeE47SQhN +ivdte6CtuiDMyzMuQba3fQVRpoF9Mo9063CFRD2K/4uAJpS66FKEKnLgyXCDEluc/gl HbVdyCuNXyhMJLHJLvlXu12fGCwLlQN2F5Erf+BYYz90byaOd9hZCEx7RNLO1GRefQ6K RVF2uo9otVpHrcdNmQ4vNToAS7Nis1odKHb2QfbeNMZTgb+1EsBBZkNMi016Dw7i7VH8 39pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=TNYpi3An; 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 p11-20020a056402500b00b004574763c862si10073895eda.9.2022.09.29.08.31.07; Thu, 29 Sep 2022 08:31:34 -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=TNYpi3An; 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 S235858AbiI2PTu (ORCPT + 99 others); Thu, 29 Sep 2022 11:19:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235840AbiI2PTs (ORCPT ); Thu, 29 Sep 2022 11:19:48 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B1F7FD33; Thu, 29 Sep 2022 08:19:46 -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=U7bbJF0jn65LRvA7kkp1q5XkbyDAHF1u73Vxz4VnaPA=; b=TNYpi3AnzfGkywcOp8kSjesbBz QBgo6A6sKjikfK3AsLDWfHNthnC0Vd6OwWM8O5Ahx8S2pCQpAKpJ1uvN2g+FDAFsE4YEZRv4kDguY izSXcqmUjgB+upm+9lhXY+4N2mXxydDkMqlUgYeJmE72ax2mZXoliWsUYZaAbeQQMr58=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1odvK1-000cyu-5O; Thu, 29 Sep 2022 17:19:33 +0200 Date: Thu, 29 Sep 2022 17:19:33 +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: [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 > > > 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. Please also test the older platforms. imx8 is quite powerful, so some performance loss does not matter too much. But for the older systems, i know people has spent a lot of time and effort optimising network performance, and they will be unhappy if you make it slower. > > By small packets, do you mean those under the copybreak limit? > > > > Please provide some benchmark numbers with your next patchset. > > Yes, the packet size is 64 bytes and it is under the copybreak > limit. As the impact is not significant, I would prefer to remove > the copybreak logic. Lets look at the benchmark numbers, what you actually mean by not significant, and across a range of hardware. Andrew