diff options
| author | Mingming Cao <[email protected]> | 2025-07-16 15:21:15 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-18 01:55:44 +0000 |
| commit | efe28034ea27cd621e42c9be9a5af2c5ad0e2198 (patch) | |
| tree | f3bca5d0b4280f64350e65d516b0b1d46680adc5 /net/lapb/lapb_out.c | |
| parent | Merge branch 'net-mlx5-misc-changes-2025-07-16' (diff) | |
| download | kernel-efe28034ea27cd621e42c9be9a5af2c5ad0e2198.tar.gz kernel-efe28034ea27cd621e42c9be9a5af2c5ad0e2198.zip | |
ibmvnic: Use ndo_get_stats64 to fix inaccurate SAR reporting
VNIC testing on multi-core Power systems showed SAR stats drift
and packet rate inconsistencies under load.
Implements ndo_get_stats64 to provide safe aggregation of queue-level
atomic64 counters into rtnl_link_stats64 for use by tools like 'ip -s',
'ifconfig', and 'sar'. Switch to ndo_get_stats64 to align SAR reporting
with the standard kernel interface for retrieving netdev stats.
This removes redundant per-adapter stat updates, reduces overhead,
eliminates cacheline bouncing from hot path updates, and improves
the accuracy of reported packet rates.
Signed-off-by: Mingming Cao <[email protected]>
Reviewed-by: Brian King <[email protected]>
Reviewed-by: Dave Marquardt <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
----
Changes since v3:
link to v3: https://www.spinics.net/lists/netdev/msg1107999.html
-- keep per queue counters as u64 (this patch) and drop off patch 1 in v3
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions
