Re: [PATCH net] net: dsa: report rx_bytes unadjusted for ETH_HLEN

From: patchwork-bot+netdevbpf
Date: Mon Mar 20 2023 - 05:20:41 EST


Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Sat, 18 Mar 2023 01:19:00 +0200 you wrote:
> We collect the software statistics counters for RX bytes (reported to
> /proc/net/dev and to ethtool -S $dev | grep 'rx_bytes: ") at a time when
> skb->len has already been adjusted by the eth_type_trans() ->
> skb_pull_inline(skb, ETH_HLEN) call to exclude the L2 header.
>
> This means that when connecting 2 DSA interfaces back to back and
> sending 1 packet with length 100, the sending interface will report
> tx_bytes as incrementing by 100, and the receiving interface will report
> rx_bytes as incrementing by 86.
>
> [...]

Here is the summary with links:
- [net] net: dsa: report rx_bytes unadjusted for ETH_HLEN
https://git.kernel.org/netdev/net/c/a8eff03545d4

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