]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5e: Count full skb length in TSO byte counters
authorGal Pressman <gal@nvidia.com>
Mon, 4 May 2026 18:37:00 +0000 (21:37 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 May 2026 01:38:57 +0000 (18:38 -0700)
commitde58db5f0d950c56f2fe488d04fdf376dd5ad2a6
tree52e4b48e94bb456b9720c73c69706561621d1a13
parentfea3521e043fa1388ec909205687db7d4b0c57ec
net/mlx5e: Count full skb length in TSO byte counters

The tso_bytes and tso_inner_bytes counters currently subtract the header
length from skb->len, counting only the payload. This is confusing and
doesn't align with the behavior of other _bytes counters in the driver.

Report the full skb length to align with this expectation.

This also makes our behavior consistent with the netdev stats API and
virtio spec definition.

Signed-off-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260504183704.272322-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c