From: Aniket Negi <aniket.negi03@gmail.com>
To: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, aniket.negi@airoha.com
Subject: Re: [PATCH net v2] net: airoha: fix MIB stats collection to be lossless
Date: Thu, 2 Jul 2026 11:51:47 +0530 [thread overview]
Message-ID: <20260702062150.8291-1-aniket.negi03@gmail.com> (raw)
In-Reply-To: <akWYEf5wusTq9_ol@lore-desk>
> > Signed-off-by: Aniket Negi <aniket.negi03@gmail.com>
>
> Hi Aniket,
>
> just few nits inline. Fixing them:
>
> Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
>
Ok sure. I'll update.
> > + dev->stats.mib_prev.tx_runt_cnt = val;
> > +
> > + /* tx_len[0]: RUNT (32-bit, delta) + E64 (64-bit, absolute) → {0, 64} bucket.
> > + * Accumulate RUNT delta in tx_runt_accum64, then assign tx_len[0] as
> > + * accum + E64_abs so each call gives the correct combined total.
> > + */
>
> no new-line here.
>
> > +
> > + dev->stats.tx_len[i] = dev->stats.mib_prev.tx_runt_accum64;
>
Sure, You are reffering to both the spaces above and below comment section?. Same for rx_runt and rx_long/tx_long.
I'll update as following:
+ dev->stats.mib_prev.tx_runt_cnt = val;
+ /* tx_len[0]: RUNT (32-bit, delta) + E64 (64-bit, absolute) → {0, 64} bucket.
+ * Accumulate RUNT delta in tx_runt_accum64, then assign tx_len[0] as
+ * accum + E64_abs so each call gives the correct combined total.
+ */
+ dev->stats.tx_len[i] = dev->stats.mib_prev.tx_runt_accum64;
> > + u32 tx_drops;
> > + u32 tx_broadcast;
> > + u32 tx_multicast;
> > + u32 tx_runt_cnt;
>
> u32 tx_runt;
>
> > + u32 tx_long_cnt;
>
> u32 tx_long;
>
> > + u64 tx_runt_accum64;
>
> 64 tx_runt64;
>
> > + u32 rx_drops;
> > + u32 rx_broadcast;
> > + u32 rx_multicast;
> > + u32 rx_errors;
> > + u32 rx_crc_error;
> > + u32 rx_over_errors;
> > + u32 rx_fragment;
> > + u32 rx_jabber;
> > + u32 rx_runt_cnt;
>
> u32 rx_runt;
>
> > + u32 rx_long_cnt;
>
> u32 rx_long;
>
> > + u64 rx_runt_accum64;
>
> u64 rx_runt64;
>
> > + } mib_prev;
> > };
Acked the change name from tx_runt_cnt to tx_run, tx_long_cnt to tx_long, tx_runt_accum64 to tx_runt64. Same for rx counters.
Best Regards,
Aniket Negi
prev parent reply other threads:[~2026-07-02 6:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 11:18 [PATCH] net: airoha: fix MIB stats collection to be lossless Aniket Negi
2026-06-30 14:21 ` Lorenzo Bianconi
2026-07-01 6:38 ` Aniket Negi
2026-07-01 6:51 ` Lorenzo Bianconi
2026-07-01 10:29 ` Aniket Negi
2026-07-01 17:39 ` [PATCH net v2] " Aniket Negi
2026-07-01 22:43 ` Lorenzo Bianconi
2026-07-02 6:21 ` Aniket Negi [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=20260702062150.8291-1-aniket.negi03@gmail.com \
--to=aniket.negi03@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=aniket.negi@airoha.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=lorenzo@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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