Re: [PATCH net] net: thunderbolt: Count delivered packets in rx_packets and rx_bytes

From
patchwork-bot+netdevbpf@kernel.org
Date
2026-08-20 19:31:26
Also in
lkml
Reply to
Fan Ye via B4 Relay, 2026-08-15
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Sat, 15 Aug 2026 10:21:52 +0000 you wrote:
From: Fan Ye <redacted>

tbnet_poll() increments rx_packets once per received frame because that is
the NAPI work unit, and then adds the same number to stats.rx_packets. An
skb is handed to the stack only when the last frame of a packet arrives,
so once the MTU exceeds TBNET_MAX_PAYLOAD_SIZE the statistic reports
frames. tx_packets is bumped once per skb, so the two ends of a link
disagree: at MTU 65330 the receiver reports 16 times the packets its
sender sent.

[...]
Here is the summary with links:
  - [net] net: thunderbolt: Count delivered packets in rx_packets and rx_bytes
    https://git.kernel.org/netdev/net/c/c5ae83ee02c0

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Thread (4 messages) 4 messages, 4 authors, last reply 2026-08-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help