Re: [RFC Patch net-next 3/5] net: dsa: microchip: add eth mac grouping for ethtool statistics

From: Vladimir Oltean
Date: Wed Dec 07 2022 - 08:21:19 EST


On Fri, Dec 02, 2022 at 11:53:33AM +0000, Rakesh.Sankaranarayanan@xxxxxxxxxxxxx wrote:
> Hi Jakub,
>
> Thanks for the review comment.
>
> On Thu, 2022-12-01 at 20:02 -0800, Jakub Kicinski wrote:
> > EXTERNAL EMAIL: Do not click links or open attachments unless you
> > know the content is safe
> >
> > On Wed, 30 Nov 2022 18:59:00 +0530 Rakesh Sankaranarayanan wrote:
> > > +     mac_stats->FramesTransmittedOK = ctr[ksz9477_tx_mcast] +
> > > +                                      ctr[ksz9477_tx_bcast] +
> > > +                                      ctr[ksz9477_tx_ucast] +
> > > +                                      ctr[ksz9477_tx_pause];
> >
> > do control frames count towards FramesTransmittedOK?
> > Please check the standard I don't recall.
> >
> Yeah, I will check with the documentation.

Oleksij said that the hardware counts pause frames for the byte
counters, so at least for consistency, they should be counted in frame
counters too.
https://patchwork.kernel.org/project/netdevbpf/patch/20221205052904.2834962-1-o.rempel@xxxxxxxxxxxxxx/