[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221207132107.3lefphupzpty4uoa@skbuf>
Date: Wed, 7 Dec 2022 15:21:07 +0200
From: Vladimir Oltean <olteanv@...il.com>
To: Rakesh.Sankaranarayanan@...rochip.com
Cc: kuba@...nel.org, andrew@...n.ch, davem@...emloft.net,
Woojung.Huh@...rochip.com, linux-kernel@...r.kernel.org,
f.fainelli@...il.com, netdev@...r.kernel.org,
UNGLinuxDriver@...rochip.com, edumazet@...gle.com,
pabeni@...hat.com, Oleksij Rempel <o.rempel@...gutronix.de>
Subject: Re: [RFC Patch net-next 3/5] net: dsa: microchip: add eth mac
grouping for ethtool statistics
On Fri, Dec 02, 2022 at 11:53:33AM +0000, Rakesh.Sankaranarayanan@...rochip.com 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@pengutronix.de/
Powered by blists - more mailing lists