[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250704171925.GO41770@horms.kernel.org>
Date: Fri, 4 Jul 2025 18:19:25 +0100
From: Simon Horman <horms@...nel.org>
To: Mingming Cao <mmc@...ux.ibm.com>
Cc: netdev@...r.kernel.org, bjking1@...ux.ibm.com, haren@...ux.ibm.com,
ricklind@...ux.ibm.com, davemarq@...ux.ibm.com
Subject: Re: [PATCH v2 net-next 3/4] ibmvnic: Use ndo_get_stats64 to fix
inaccurate SAR reporting
On Wed, Jul 02, 2025 at 10:18:03AM -0700, Mingming Cao wrote:
> 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 <mmc@...ux.ibm.com>
> Reviewed by: Brian King <bjking1@...ux.ibm.com>
> Reviewed by: Dave Marquardt <davemarq@...ux.ibm.com>
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists