Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3241688rwb; Mon, 7 Aug 2023 10:12:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkaWoDbNqasNV1RnO4CQNDoujMFSLHCiYsBCMhVsEyWQEJnX3w9dVbC2lc41FylVNLXncC X-Received: by 2002:a17:90b:394:b0:268:b682:23da with SMTP id ga20-20020a17090b039400b00268b68223damr7388808pjb.34.1691428376244; Mon, 07 Aug 2023 10:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691428376; cv=none; d=google.com; s=arc-20160816; b=eu6zDPaVV1vs9Pzp1DguwcW1V0sAFBAJYO8WWKZTPZZ2bgBTwPCrMfuZ20nystFroK TeDEuwGhpugPSbWkmvX5V/QqoIXZ55B8rvEDOJYUXkjorFFwwwZeBXP3mWlEHlr+AskY WlcVgA1joQWQA6sRKjBRS7UvCghHhgaWTfuNQ+DUPScaH6rmqzNy5tBektggOBxPyJBt z203YKiZ2N7Eru5CFofgG1uZizm4RdT/RJRgSC5GuD5nxf8z3J4TcwzjsgATxX03z5Zl aFs6M7HgNXrpcYcStaMcHDD27OM1CDXHz5uEx4gRYsDabaA8kjb30fallFXXWTvFTytM Xc4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=2+x+U67UEjBvCp+UtSck6iafYDy0acszxmc9CuDeSV8=; fh=hRGLfC5rZ7xn8l8nJ3zMNJkc8XKXhiPo84VY52vmaQk=; b=IunIy0pLobMGKcmJag71FOFvWxMkOJGIsL+y49X1Hkjt4Vjsr4HK7psmC4lpXRnRwS +buDRSUkm/secZeiPRuk22WrQz1Ii4fupUASUU/Jo/w/xOQZuGsfNtcw8vW3XjuuXMP/ 6+zKh1Q3Z0yqON8kcpQuk/hwhU6uTT1R7UWjyWrDVeznttE8Uddk9890o8rw+BWN0EN4 VfXcK0y3mKbaBv0ePpg2L6igKasrfhf6+Hfk7DQF8ARx2s0L4ITVmRuar2ghr9OYln5Q WpLPRQrUca1hol9pN49JSxQdqr1K8fMhH2iwm6eIdis7sb+6Dezi3fz5alKUdXRLiGnN phow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OPyqeyqV; 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 e7-20020a17090a630700b00268515ce449si5910304pjj.94.2023.08.07.10.12.44; Mon, 07 Aug 2023 10:12:56 -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=OPyqeyqV; 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 S230236AbjHGQeB (ORCPT + 99 others); Mon, 7 Aug 2023 12:34:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230337AbjHGQd6 (ORCPT ); Mon, 7 Aug 2023 12:33:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ED66172A for ; Mon, 7 Aug 2023 09:33:57 -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 B29A061F2C for ; Mon, 7 Aug 2023 16:33:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6163BC433C8; Mon, 7 Aug 2023 16:33:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691426036; bh=XgeQ5mSaWe8K6QwECsHe/esmDKTuPpjwcCuG5PrF2aA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OPyqeyqVIr68DswAS0TYjevUUCuhQAVJkjGbBek8e8l3hfB/D5EzUOh8HEVLMIePb q4cW7JFqaBcW95B/0Ofe1flROB+y6rS6dHLVLLV5yk+mkvNS8SvfomkcA8UiadUa4d AOAs8d0hgbT2d+grxxXzKUrmFOQSGY1fAFbJRSq+D2oylMt02Xo8KPOxO+Bssx6qQt Fan02QqfsVtBDeeE4zcVPxWDXu4QXGQ+6ljyH/4YZ7LGM3ppSgfBbMjkiAsn2L+jgS I7oEf0N6+mXHaw3nqsoZ+cHTbWmxA5LyqWadY89vkd1Jq6uAJvdYFfvmHnkgtgobM2 7hSjYbv68xASQ== Date: Mon, 7 Aug 2023 09:33:54 -0700 From: Jakub Kicinski To: Wei Fang Cc: Jesper Dangaard Brouer , Jesper Dangaard Brouer , "brouer@redhat.com" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , Shenwei Wang , Clark Wang , "ast@kernel.org" , "daniel@iogearbox.net" , "john.fastabend@gmail.com" , "netdev@vger.kernel.org" , dl-linux-imx , "linux-kernel@vger.kernel.org" , "bpf@vger.kernel.org" , Andrew Lunn Subject: Re: [PATCH V3 net-next] net: fec: add XDP_TX feature support Message-ID: <20230807093354.184bc18b@kernel.org> In-Reply-To: References: <20230731060025.3117343-1-wei.fang@nxp.com> <20230802104706.5ce541e9@kernel.org> <1bf41ea8-5131-7d54-c373-00c1fbcac095@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 Mon, 7 Aug 2023 10:30:34 +0000 Wei Fang wrote: > ./xdp_rxq_info --dev eth0 --action XDP_TX > Running XDP on dev:eth0 (ifindex:2) action:XDP_TX options:swapmac > XDP stats CPU pps issue-pps > XDP-RX CPU 0 259,102 0 > XDP-RX CPU total 259,102 > Result 2: dma_sync_len method > Running XDP on dev:eth0 (ifindex:2) action:XDP_TX options:swapmac > XDP stats CPU pps issue-pps > XDP-RX CPU 0 258,254 0 > XDP-RX CPU total 258,254 Just to be clear are these number with xdp_return_frame() replaced with page_pool_put_page(pool, page, 0, true); ?