Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp965080rdg; Fri, 11 Aug 2023 05:55:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFckIoYjzbJRQWOXFL6i09UHLhe7DzmZ4o/z8g3iJCrPT/0nyWHitpsfCdE0xI7TTwiQxYu X-Received: by 2002:a17:906:538d:b0:96f:8666:5fc4 with SMTP id g13-20020a170906538d00b0096f86665fc4mr1587959ejo.50.1691758544468; Fri, 11 Aug 2023 05:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691758544; cv=none; d=google.com; s=arc-20160816; b=y18VIRITC9fLaJzaTqQs0+2U5qJVrXJlsoWZv2c7W/PuvLDr1i3e9pX4E0oELKaOqC dZ7wi3EtUzndtrRVhvDz8afGPeBm6LO2agDqxhqpn7zZvCWoi6bY7vLmoOoz2P/EsH2I miZbdu0FkDYsLMjPIuQLpom+bSzu0/E1CXeDN1teUZ/Szwp22UxosoCuZU3Yr6e1PYr3 5tLhd0Azx+f8QvSv40zRXjxUGhUs0zo7KT71ALloZXDpATMaoJ1YDMcKa+Hz+pf617RB cjHQ8cUTEiwmsuYRm0Hc1qKSs43ZyIIryzeo2oZ9XiT6Da0GyPvV5v3P8C3337Wirblk fWAA== 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=aYNQcyiv5qY6Kx6dEt8NSQt19BEVx+6JzhLQqtQy/VA=; fh=/ijJrNZ8R3D5CRz5LXRt3udkO6ORJ69tk4xx6xrFm1Q=; b=gZukpKE0Qul1M23Racsudakqa2BF8fOegmRoGZPqpy5yYqZyQKk3fF+DGAh5z3agC2 t1/wQhQmS+PKH8xX8v6ALKgahJAuD3Trf7g9em4URSNO/WgKZzLqgELjMKx+zuLw6pwF 1tMvCNFPdDBv3n9uorHfelK0QMBRNI+0B9m3+RjbYrvCr1oWXxfpksC++LN2ZDqeIa89 q2W5ukjBUCFc0wExlIHC0/0z8+ai2Y5k/O0Vgf5DDPwqm9tNZtr0Z02pfhxZ9ce20iVj RYlfRrnNDkRPsItIb/xflcGuhhVp2gcBKk7OSMgp/aA8FG2O4YTMl+/YLAX06Q73c2uW qMPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lyYGu5/u"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m8-20020a1709066d0800b00992acf1f370si3613993ejr.939.2023.08.11.05.55.19; Fri, 11 Aug 2023 05:55:44 -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=@kernel.org header.s=k20201202 header.b="lyYGu5/u"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230077AbjHKL6K (ORCPT + 99 others); Fri, 11 Aug 2023 07:58:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232942AbjHKL6J (ORCPT ); Fri, 11 Aug 2023 07:58:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98D4812C for ; Fri, 11 Aug 2023 04:58:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 37C15670FA for ; Fri, 11 Aug 2023 11:58:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82DD9C433C7; Fri, 11 Aug 2023 11:58:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691755086; bh=wfvu3TMRQPeIB4HmfbwwbhKQnTjDQldHSGkl2C9S4iQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lyYGu5/uMiK9TbeMZWJXnCV0oyAzsE/5JBPkWDkQxRT1DPbMJKbg6ybKFOhqlQBDn 2J/GJqc/efbNVLfEHCl+H5JMaS9pWI/EWw6wNjsqSLbRycjiuxPvy/UhRs1UxYt/54 QWJBo35BVFe3gB4cAqk2uFW83L3i8Is5s9gc0mcV11fY0atqQDnG37c6A9NMeecrNt bhfGMxbB71i3YSrVfZVpakn6FU57rVxT+vznHJIHkITxk/VZOK5/8VOb1T+e6VK/WV 64uPt3PViRq8P7IHgOHEKLkqryLiXUOQVk0/xE484D5Q0S+p6d1wFwVhI5dq0jp2z9 pQfJqRNA/xlcA== Date: Fri, 11 Aug 2023 13:58:00 +0200 From: Simon Horman To: Wei Fang Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, shenwei.wang@nxp.com, xiaoning.wang@nxp.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, larysa.zaremba@intel.com, aleksander.lobakin@intel.com, jbrouer@redhat.com, netdev@vger.kernel.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH V5 net-next 1/2] net: fec: add XDP_TX feature support Message-ID: References: <20230810064514.104470-1-wei.fang@nxp.com> <20230810064514.104470-2-wei.fang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230810064514.104470-2-wei.fang@nxp.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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, Aug 10, 2023 at 02:45:13PM +0800, Wei Fang wrote: > The XDP_TX feature is not supported before, and all the frames > which are deemed to do XDP_TX action actually do the XDP_DROP > action. So this patch adds the XDP_TX support to FEC driver. > > I tested the performance of XDP_TX in XDP_DRV mode and XDP_SKB > mode respectively on i.MX8MP-EVK platform, and as suggested by > Jesper, I also tested the performance of XDP_REDIRECT on the > same platform. And the test steps and results are as follows. > > XDP_TX test: > Step 1: One board is used as generator and connects to switch,and > the FEC port of DUT also connects to the switch. Both boards with > flow control off. Then the generator runs the > pktgen_sample03_burst_single_flow.sh script to generate and send > burst traffic to DUT. Note that the size of packet was set to 64 > bytes and the procotol of packet was UDP in my test scenario. In > addtion, the SMAC of the packet need to be different from the MAC nit: addtion -> addition checkpatch.pl --codespell is your friend here. ...