From: Simon Horman <horms@kernel.org>
To: Mingming Cao <mmc@linux.ibm.com>
Cc: netdev@vger.kernel.org, kuba@kernel.org, bjking1@linux.ibm.com,
haren@linux.ibm.com, ricklind@linux.ibm.com,
davemarq@linux.ibm.com
Subject: Re: [PATCH v3 net-next 0/2] ibmvnic: Fix/Improve queue stats
Date: Thu, 10 Jul 2025 11:16:38 +0100 [thread overview]
Message-ID: <20250710101638.GO721198@horms.kernel.org> (raw)
In-Reply-To: <20250709184008.8473-1-mmc@linux.ibm.com>
On Wed, Jul 09, 2025 at 11:40:06AM -0700, Mingming Cao wrote:
> This patch series introduces two updates to the ibmvnic driver,
> focusing on improving the accuracy and safety of queue-level statistics.
>
> Patch 1: Convert per-queue RX/TX stats to atomic64_t to ensure thread-safe
> updates in concurrent environments. This establishes a safe and consistent
> foundation for subsequent statistics-related fixes.
>
> Patch 2: Fix inaccurate sar statistics by implementing ndo_get_stats64() and
> removing the outdated manual updates to netdev->stats.
>
> This series is intended for `net-next` and assumes the bug fix for hardcoded
> `NUM_RX_STATS` and `NUM_TX_STATS` has already been included in the `net` tree.
>
> --------------------------------------
>
> Changes since v2:
> link to v2: https://www.spinics.net/lists/netdev/msg1104665.html
>
> - Dropped Patch 2 from v2, which fixed the hardcoded `NUM_RX_STATS` and `NUM_TX_STATS`,
> as suggested by Simon. https://www.spinics.net/lists/netdev/msg1106669.html
> - Updated Patch 1 in v2 to rebase on top of the above fix in `net`.
> – Patch 3 in v2 (now patch 2) unchanged.
> - Dropped Patch 4 from v2, which raised the default number of indirect sub-CRQ entries
> and introduced a module parameter for backward compatibility. Based on review feedback,
> plan to explore alternative ways to handle older systems without adding a module parameter.
>
Thanks, overall this looks good to me.
I think you need to repost this patchset once [1] is present in net-next.
[1] [PATCH net] ibmvnic: Fix hardcoded NUM_RX_STATS/NUM_TX_STATS with dynamic sizeof
https://lore.kernel.org/all/20250709153332.73892-1-mmc@linux.ibm.com/
--
pw-bot: deferred
prev parent reply other threads:[~2025-07-10 10:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-09 18:40 [PATCH v3 net-next 0/2] ibmvnic: Fix/Improve queue stats Mingming Cao
2025-07-09 18:40 ` [PATCH v3 net-next 1/2] ibmvnic: Use atomic64_t for " Mingming Cao
2025-07-09 18:40 ` [PATCH v3 net-next 2/2] ibmvnic: Use ndo_get_stats64 to fix inaccurate SAR reporting Mingming Cao
2025-07-10 10:16 ` Simon Horman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250710101638.GO721198@horms.kernel.org \
--to=horms@kernel.org \
--cc=bjking1@linux.ibm.com \
--cc=davemarq@linux.ibm.com \
--cc=haren@linux.ibm.com \
--cc=kuba@kernel.org \
--cc=mmc@linux.ibm.com \
--cc=netdev@vger.kernel.org \
--cc=ricklind@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.