netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] ibmvnic: Improve queue stats and subcrq indirect handling
@ 2025-06-30 23:48 Mingming Cao
  2025-06-30 23:48 ` [PATCH net-next 1/4] ibmvnic: Derive NUM_RX_STATS/NUM_TX_STATS dynamically Mingming Cao
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Mingming Cao @ 2025-06-30 23:48 UTC (permalink / raw)
  To: netdev; +Cc: bjking1, haren, ricklind, mmc

This patch series introduces improvements and fixes for
the ibmvnic driver, focusing on statistics handling and CRQ scalability:

1. Dynamically derive NUM_R instead of relying on a static macro.
This allows more flexible configuration of receive queues at runtime.

2. Convert queue-level statistics to use atomic64_t to ensure correctness
under concurrent updates and avoid race conditions.

3. Fix inaccurate System Attention Resource (SAR) statistics reporting
by switching to ndo_get_stats64. This aligns the SAR path with the standard
kernel interface for retrieving network statistics, ensuring accuracy and consistency.

4. Increase the maximum number of indirect entries per sub-CRQ to
 better support high-throughput configurations and future scaling needs.


Mingming Cao (4):
  ibmvnic: Derive NUM_RX_STATS/NUM_TX_STATS dynamically
  ibmvnic: Use atomic64_t for queue stats
  ibmvnic: Use ndo_get_stats64 to fix inaccurate SAR reporting
  ibmvnic: Make max subcrq indirect entries tunable via module param

 drivers/net/ethernet/ibm/ibmvnic.c | 92 ++++++++++++++++++++----------
 drivers/net/ethernet/ibm/ibmvnic.h | 29 ++++++----
 2 files changed, 80 insertions(+), 41 deletions(-)

-- 
2.39.3 (Apple Git-146)


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-07-03  2:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30 23:48 [PATCH net-next 0/4] ibmvnic: Improve queue stats and subcrq indirect handling Mingming Cao
2025-06-30 23:48 ` [PATCH net-next 1/4] ibmvnic: Derive NUM_RX_STATS/NUM_TX_STATS dynamically Mingming Cao
2025-07-02  1:30   ` Jakub Kicinski
2025-06-30 23:48 ` [PATCH net-next 2/4] ibmvnic: Use atomic64_t for queue stats Mingming Cao
2025-07-03  2:58   ` kernel test robot
2025-06-30 23:48 ` [PATCH net-next 3/4] ibmvnic: Use ndo_get_stats64 to fix inaccurate SAR reporting Mingming Cao
2025-06-30 23:48 ` [PATCH net-next 4/4] ibmvnic: Make max subcrq indirect entries tunable via module param Mingming Cao
2025-07-02  1:31   ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).