From: Jakub Kicinski <kuba@kernel.org>
To: Bhargava Chenna Marreddy <bhargava.marreddy@broadcom.com>
Cc: edumazet@google.com, andrew+netdev@lunn.ch,
ajit.khaparde@broadcom.com, horms@kernel.org, pabeni@redhat.com,
michael.chan@broadcom.com, linux-kernel@vger.kernel.org,
vsrama-krishna.nemani@broadcom.com, davem@davemloft.net,
netdev@vger.kernel.org, rajashekar.hudumula@broadcom.com,
vikas.gupta@broadcom.com, pavan.chebbi@broadcom.com,
rahul-rg.gupta@broadcom.com
Subject: Re: [net-next,v3,6/8] bng_en: add initial support for ethtool stats display
Date: Wed, 4 Mar 2026 10:22:56 -0800 [thread overview]
Message-ID: <20260304102256.0771e576@kernel.org> (raw)
In-Reply-To: <CANXQDtaMHmzU32jyyooXk7qdHPqroW9Y-Nni==qritBgegn2Dg@mail.gmail.com>
On Wed, 4 Mar 2026 13:38:35 +0530 Bhargava Chenna Marreddy wrote:
> I see the issue. These aren't actually duplicates of the standard
> per-interface stats.
> They are unique per-ring hardware counters, but the strings happen to match.
>
> To fix the collision, I'll prefix the entire ring stat arrays with
> rxq_ and txq_.
>
> Example of the new output:
> - Per-ring stats (via ethtool -S):
> # ethtool -S eno12399np0 | grep rxq_errors
> [0]: rxq_errors: 0
> [1]: rxq_errors: 0
> ...
> [n-1]: rxq_errors: 0
Unrelated to the previous comment, but could you perhaps not use
this `[id]: name: value` notation in bng_en? Having spaces in the name
of the stats in bnxt breaks a bunch of scripts for me. rxq$id_$name is
the notation majority of the drivers use.
> - Standard interface stats (via .ndo_get_stats64 / sysfs):
> # cat /sys/class/net/eno12399np0/statistics/rx_errors
> 0
Standard stats does not mean just rtnl_stats. Please TAL at the per
queue stats for instance. If you think some of the counters don't
match you can keep them but please include in the commit msg the
analysis of what counters you considered + what the HW counter is doing
= why the two don't match.
next prev parent reply other threads:[~2026-03-04 18:22 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-28 7:27 [PATCH net-next v3 0/8] bng_en: add link management and statistics support Bhargava Marreddy
2026-02-28 7:27 ` [PATCH net-next v3 1/8] bng_en: add per-PF workqueue, timer, and slow-path task Bhargava Marreddy
2026-02-28 7:27 ` [PATCH net-next v3 2/8] bng_en: query PHY capabilities and report link status Bhargava Marreddy
2026-02-28 7:27 ` [PATCH net-next v3 3/8] bng_en: add ethtool link settings, get_link, and nway_reset Bhargava Marreddy
2026-03-03 3:00 ` [net-next,v3,3/8] " Jakub Kicinski
2026-03-04 10:37 ` Bhargava Chenna Marreddy
2026-03-04 18:17 ` Jakub Kicinski
2026-03-05 10:51 ` Bhargava Chenna Marreddy
2026-02-28 7:27 ` [PATCH net-next v3 4/8] bng_en: implement ethtool pauseparam operations Bhargava Marreddy
2026-02-28 7:27 ` [PATCH net-next v3 5/8] bng_en: add support for link async events Bhargava Marreddy
2026-02-28 7:27 ` [PATCH net-next v3 6/8] bng_en: add initial support for ethtool stats display Bhargava Marreddy
2026-03-03 3:00 ` [net-next,v3,6/8] " Jakub Kicinski
2026-03-04 8:08 ` Bhargava Chenna Marreddy
2026-03-04 18:22 ` Jakub Kicinski [this message]
2026-03-05 10:33 ` Bhargava Chenna Marreddy
2026-02-28 7:27 ` [PATCH net-next v3 7/8] bng_en: periodically fetch and accumulate hardware statistics Bhargava Marreddy
2026-02-28 7:27 ` [PATCH net-next v3 8/8] bng_en: implement ndo_get_stats64 Bhargava Marreddy
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=20260304102256.0771e576@kernel.org \
--to=kuba@kernel.org \
--cc=ajit.khaparde@broadcom.com \
--cc=andrew+netdev@lunn.ch \
--cc=bhargava.marreddy@broadcom.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.chan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pavan.chebbi@broadcom.com \
--cc=rahul-rg.gupta@broadcom.com \
--cc=rajashekar.hudumula@broadcom.com \
--cc=vikas.gupta@broadcom.com \
--cc=vsrama-krishna.nemani@broadcom.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox