Article View: linux.kernel.netdev
Article #14350Re: [PATCH net] net: stmmac: count XDP_PASS frames in rx_packets on the XSK zero-copy path
From: patchwork-bot+netdevbpf
Date: Wed, 11 Nov 2026 01:10
Date: Wed, 11 Nov 2026 01:10
27 lines
9034 bytes
9034 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 6 Nov 2026 06:12:51 +0000 you wrote:
> In the AF_XDP zero-copy RX path, frames that the XDP program passes to
> the stack are handed over by stmmac_dispatch_skb_zc(). That function
> increments rx_pkt_n instead of rx_packets since
> commit 133466c3bbe1 ("net: stmmac: use per-queue 64 bit statistics where necessary").
>
> stmmac_rx_zc() already adds every processed frame to rx_pkt_n, so each
> XDP_PASS frame is counted twice there, and rx_packets, which
> ndo_get_stats64() reports, never counts them: on a zero-copy queue
> rx_bytes grows with the passed frames while rx_packets stays still.
>
> [...]
Here is the summary with links:
- [net] net: stmmac: count XDP_PASS frames in rx_packets on the XSK zero-copy path
https://git.kernel.org/netdev/net/c/070411c1590c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179435940493.149955.7586683481024134656.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360803-linux-kernel-netdev=dewy.ruReferences:
<PNYPR01MB11444552E41C2B17A992492C0FD762@PNYPR01MB11444.INDPRD01.PROD.OUTLOOK.COM>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360803-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: stmmac: count XDP_PASS frames in rx_packets on the XSK zero-copy path Date: Wed, 11 Nov 2026 01:10:04 +0000 Organization: Usenet Network Message-ID: <179435940493.149955.7586683481024134656.git-patchwork-notify@kernel.org> References: <PNYPR01MB11444552E41C2B17A992492C0FD762@PNYPR01MB11444.INDPRD01.PROD.OUTLOOK.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="746956"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:UerrbkzNJGxoXXnk4HN7H5Q3/6k= sha256:OcXaVy8WGHbTMwS9d5kBaKDgiwzvewv90OvlCQjlcOY= sha1:aX1oaOR2tphnBpzQ8Yx92af1dIY= sha256:own/Y25xY3o7ynjv1vI8WBXcXPO3myLPM8hYbe+/B20= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 29F30113DF5; Wed, 11 Nov 2026 04:10:29 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LG7TnMpF_7dv; Wed, 11 Nov 2026 04:10:25 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-360803-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id A2E09113D92; Wed, 11 Nov 2026 04:10:15 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 74F60625365; Wed, 11 Nov 2026 01:10:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794359407; b=bYFOwK9oU+c264i6nuaMD5Hf7mCqqkYjPivQKKmKJlG9FsZZh6AqeDuUkHbtU9c1fe0o /4R6H+TUpfB+yofUDwQSKvBThuLlQ+T3klpxdR+U6UJZbXcTWurLSye8Ui58uaSCEY6hO X0BiRFId1gzVlt2O9NwmQqJOhVEV79Dn2D3NXrlJHmJE+v3TyUCIvHgd9bm+JGRqT/Z09 kIlfM4Oz+HfMsI0ZzGA1O+u0vC7aSz5wI/pX1BDz+V53p4ceqpqsKE+pWg39Mjzht3H7f +yYLzMWPXRb5CgY5CiW18soXvfHoJf/EWo3NZoocC+4BCOQMll1gdbZh9IWgSz3+Jhw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794359407; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=yjUwvrkv4SLMUIorZAyMYy8YP7lnL80NfAbtLuZyId4=; b=wx9dmSbGOXLrLyYM0TPaM+iq3JLYubMXHszul+RhnTPiun5w2ls/zWCGTn2+SiOkvnJn wZe5iMntNpBYgxfy+jqT8YLe/N2gcIW4xCGaYvCiSJ1qiTWRdboqN1Qiz8+W9vbyj8Lno pTamr+a7i9g/nwUaGp38l8fNeOi/GR4Nd5r5OximS/T63HRmNtUF6UR4Ji50krgOyVUJi LLFecmyPfV9K5zhtD8h95jxeIVbqVx6vTB3f1fMeHINkgpotYUoWxYmu0mcIf9q/Vk6Q/ 3TnSOBIpq/UIsez5kSWuL73TmwETBZusClb5jK++rbEKDmKatbOSUfuaY3rqTweiPsg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Th6w0rtY; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94560606A327; Wed, 11 Nov 2026 01:10:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Th6w0rtY X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794359406; b=G7la76txb5QnVQLPb7Wl+1uUbFY52gnBhtz+QM0tjp2HIIFFxCLEvyeDygXcXEMNFv5z GTgqueDD6blR7NwmBFxbHR/HXjjGjl53iS7F5yLkLQ1WlCZL9uwLzR5CA2o6WazZj96vn WWZiNYJVxeDmdIT1pTz1QJayrAi1+R9w8h+rnYPqFYJRwDZxd+Q1VJTJBAD84EG0BikXt sTdz/fqH2EqRDw/stC8INs47v+9/xUS30P9ntWDt0IH6MWUtNka0bbpYPi9fnTPKEXN2/ eFIFyQuUKXtEuW2Ri4Awgapds1K6UzmZCRpMt3iLsCOtZIXEpAa8YBqeREk7sR4qrWQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794359406; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=yjUwvrkv4SLMUIorZAyMYy8YP7lnL80NfAbtLuZyId4=; b=bZnijXd1wtBjHT80a5LZ8jS++AkG6ZiiqY+fM5KF5RRg4dkdlCY70imVi3kjm9zycwRl RYWS6Bmc/5uxDB2VMgKoFtWBUpdxPO76Nt8Ee8l6Nyn+gqQ1Qveh5tpwbjyS7pdPvmvTc ho0zt+i1H9sHi9cVXE7hhdsm/O/Gr3nlQhxLn/q5p5Mkf+P1jOMfRlCfXvB96kmPq3iXe Xqrl/i0FMGVa5IjTLeKT+ze/XCQrPnZsKChYv1hSQSOZrNoZNm9i1zF/3jYSC+++6a5bT 8/UcF9l5ZZ2klY2ngPHf76biG9eI9Kn9tnGyyUn+a38F7HBvpSv9Mg2gKEEbN52ec5w== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Th6w0rtY; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF490606A31C for <netdev@vger.kernel.org>; Wed, 11 Nov 2026 01:10:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C1C11F0089F; Wed, 11 Nov 2026 01:10:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794359406; bh=yjUwvrkv4SLMUIorZAyMYy8YP7lnL80NfAbtLuZyId4=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=Th6w0rtY6/FNu2Fwn7SRNCAvZUAK9dAs1OjMGqfRplU0dknAznrZW/S1LZB3BQ0Mj 6k2xrAPJvNRXHO7YbbdWFTLLT61MlpAV4dRK+zaX4lXMUXP+iDAGWGlrOpnKAE0F4z xPHBoub0rEXZG/2lRCWxvyDcrOxsgeiSPjPQsf9rwASl9uIxSN7R8czFFshLanvWZZ 30PkHMBzue0LNnJECQKTdzBrc5L9m2K3Ed2b+HN7nBjPBtb/stHsukFrBkjtuzMtBe V8IBa2Bb37gpaieFtKB8w9tT3jdKPdxww0kvIP7YP85tVaO7JJQbCiT2iopyRDcC3t usXAxT175OWBA== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 20F71380CFE6; Wed, 11 Nov 2026 01:10:06 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <PNYPR01MB11444552E41C2B17A992492C0FD762@PNYPR01MB11444.INDPRD01.PROD.OUTLOOK.COM> X-Cc: maxime.chevallier@bootlin.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, jszhang@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com