Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1358936rwb; Thu, 10 Nov 2022 15:11:35 -0800 (PST) X-Google-Smtp-Source: AMsMyM7b5JxwUmKFXVcZMZ/S9K1cpVs1/FObzJePlmjzsSi5OAYGI1dl8+Cz6caMRH6LpA41PecM X-Received: by 2002:a17:906:3e09:b0:7ad:69eb:90c3 with SMTP id k9-20020a1709063e0900b007ad69eb90c3mr4301929eji.285.1668121894848; Thu, 10 Nov 2022 15:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668121894; cv=none; d=google.com; s=arc-20160816; b=AguGUFDzMbj0b53w9g/EPGpRuYXu9dI+cwsY5rv+fb2Z6R8jz9h+szVO2TueCF3svr Wt6cfiQ8UKgzqm95izJ/+az+ZmPaFnOYLLeuXn3tBy1H1ScTps+7wmh0R25uvRM2t7mN 4QxgJjGXGRjRxeYSEOQcAsUaf0dL1aOOO8Coq5ZLe7ScLbQtdIPvVTnYRbfrhp1ehDkc 7Iw9o7WExI70Sb/aLlEREw1RSem6RVeEyHTCzE/fnmH7hSzzine/A/nE3gFJ3lnUSq+N 53MIi+xtqkZ+qRDiQq3T1pPUivHWTN/qvJ4bfgNp2AkNAJ82CywEcxU3e0h6E0CXcfDK rnMA== 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=D5Vr6fIp6/HlluKXLw5TEN16Jml8Tm1cOoODbF1AYq4=; b=uY+4VhV/z5ORAQulsaUGfOaFB3EU+DLdxM3OBhuoJJRzFo8F3R0C0U1ji950HAVCke zo0AouccJH+TeZuzTSsdvhbvNL/hYppJZSdabgWBMwxsTQncFZjNQttrzPW8RPXvVU6j Vo65ue+s2UsqCauRf4u/tL38g/t1zqG07/KkdN34Z7cLXAb5tWOo6bLhyHMksXudiSzA Z0uMVfyqD1Be+QfUDyiXIww+3kNXL+BFyfjeuCe1/D61I8wVxMSBCARqA5ST3YMFl7Eo SU94aFCSd2zX99Gb0119UaD+ASqdA3eVj+Y6jxsaWuggxjYscWuCb6EXcTOg7D2IoS95 UXHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=KH27mkB4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020a17090646c900b0073dc32ccd9fsi392476ejs.104.2022.11.10.15.11.12; Thu, 10 Nov 2022 15:11:34 -0800 (PST) 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=KH27mkB4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231817AbiKJWvV (ORCPT + 93 others); Thu, 10 Nov 2022 17:51:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230502AbiKJWvT (ORCPT ); Thu, 10 Nov 2022 17:51:19 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4294351C3F; Thu, 10 Nov 2022 14:51:17 -0800 (PST) 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=D5Vr6fIp6/HlluKXLw5TEN16Jml8Tm1cOoODbF1AYq4=; b=KH27mkB4rujg4Bur/91fXq53dt RgMew+8vGJWo/4WYUXuCPsPGpq9Mw7Z34824Cs4c6xYduceXrnooKKuyY9r5l1iXTRE28voap8CMP rFze6Tr7GL2abpmdseQaFJvn9QZtWVsn3qaRrV2OcMXSZQGHD4roboe5Q5ZlDQ0a7cfA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1otGO8-0024eZ-QD; Thu, 10 Nov 2022 23:51:12 +0100 Date: Thu, 10 Nov 2022 23:51:12 +0100 From: Andrew Lunn To: Alexander Lobakin Cc: Horatiu Vultur , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, linux@armlinux.org.uk, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net-next v3 0/4] net: lan966x: Add xdp support Message-ID: References: <20221109204613.3669905-1-horatiu.vultur@microchip.com> <20221110111747.1176760-1-alexandr.lobakin@intel.com> <20221110162148.3533816-1-alexandr.lobakin@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221110162148.3533816-1-alexandr.lobakin@intel.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 Thu, Nov 10, 2022 at 05:21:48PM +0100, Alexander Lobakin wrote: > From: Andrew Lunn > Date: Thu, 10 Nov 2022 14:57:35 +0100 > > > > Nice stuff! I hear time to time that XDP is for 10G+ NICs only, but > > > I'm not a fan of such, and this series proves once again XDP fits > > > any hardware ^.^ > > > > The Freescale FEC recently gained XDP support. Many variants of it are > > Fast Ethernet only. > > > > What i found most interesting about that patchset was that the use of > > the page_ppol API made the driver significantly faster for the general > > case as well as XDP. > > The driver didn't have any page recycling or page splitting logics, > while Page Pool recycles even pages from skbs if > skb_mark_for_recycle() is used, which is the case here. So it > significantly reduced the number of new page allocations for Rx, if > there still are any at all. When reviewing new drivers we should be pushing them towards using the page pool API. It seems to do better than the average role your own implementation. Andrew