diff options
| author | Oleksij Rempel <o.rempel@pengutronix.de> | 2026-03-05 15:34:27 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-03-09 19:48:33 -0700 |
| commit | 50988747c30df47b73b787f234f746027cb7ec6c (patch) | |
| tree | 4293eea39f0f54da9deb9d23396cd7444731c818 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | e4f774a0cc955ce762aec91c66915a6e15087ab7 (diff) | |
| download | linux-50988747c30df47b73b787f234f746027cb7ec6c.tar.gz linux-50988747c30df47b73b787f234f746027cb7ec6c.zip | |
net: usb: lan78xx: fix TX byte statistics for small packets
Account for hardware auto-padding in TX byte counters to reflect actual
wire traffic.
The LAN7850 hardware automatically pads undersized frames to the minimum
Ethernet frame length (ETH_ZLEN, 60 bytes). However, the driver tracks
the network statistics based on the unpadded socket buffer length. This
results in the tx_bytes counter under-reporting the actual physical
bytes placed on the Ethernet wire for small packets (like short ARP or
ICMP requests).
Use max_t() to ensure the transmission statistics accurately account for
the hardware-generated padding.
Fixes: d383216a7efe ("lan78xx: Introduce Tx URB processing improvements")
Cc: stable@vger.kernel.org
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://patch.msgid.link/20260305143429.530909-3-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
