diff options
| author | Sean Anderson <sean.anderson@linux.dev> | 2025-08-25 13:21:34 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-09-04 16:55:39 +0200 |
| commit | 1228285399c56dbd97d0d4dbc33f33dae84bbc62 (patch) | |
| tree | d68f4771243b47b45daee3fcbcca2aba0c9009f3 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 11a6bd4c111b31d58b5b793abf703c91261e6e7c (diff) | |
| download | kernel-1228285399c56dbd97d0d4dbc33f33dae84bbc62.tar.gz | |
net: macb: Fix offset error in gem_update_stats
[ Upstream commit 16c8a3a67ec799fc731919e3e51be9af6cdf541d ]
hw_stats now has only one variable for tx_octets/rx_octets, so we should
only increment p once, not twice. This would cause the statistics to be
reported under the wrong categories in `ethtool -S --all-groups` (which
uses hw_stats) but not `ethtool -S` (which uses ethtool_stats).
Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Fixes: f6af690a295a ("net: cadence: macb: Report standard stats")
Link: https://patch.msgid.link/20250825172134.681861-1-sean.anderson@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
