summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@linux.dev>2025-08-25 20:21:34 +0300
committerJakub Kicinski <kuba@kernel.org>2025-08-27 03:36:28 +0300
commit16c8a3a67ec799fc731919e3e51be9af6cdf541d (patch)
treeb9b3279f50e65eb77a7006a554ad8206ebbc1560 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent26c1f55f7ec8d1a4bde8c50e4ee04e3c8c6b27e8 (diff)
downloadlinux-16c8a3a67ec799fc731919e3e51be9af6cdf541d.tar.xz
net: macb: Fix offset error in gem_update_stats
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>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions