All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sunil Kovvuri <sunil.kovvuri@gmail.com>
To: Jakub Kicinski <kubakici@wp.pl>
Cc: Linux Netdev List <netdev@vger.kernel.org>,
	"David S. Miller" <davem@davemloft.net>,
	Christina Jacob <cjacob@marvell.com>,
	Sunil Goutham <sgoutham@marvell.com>
Subject: Re: [PATCH 14/17] octeontx2-pf: Add basic ethtool support
Date: Mon, 13 Jan 2020 16:57:06 +0530	[thread overview]
Message-ID: <CA+sq2CcCSX4NuoyZZ020xH75s1+ii5Xc6XM5jAovUTpQtaZXfQ@mail.gmail.com> (raw)
In-Reply-To: <20200111052724.768f5e25@cakuba.netronome.com>

On Sat, Jan 11, 2020 at 6:57 PM Jakub Kicinski <kubakici@wp.pl> wrote:
>
> On Sat, 11 Jan 2020 14:17:45 +0530, Sunil Kovvuri wrote:
> > On Sat, Jan 11, 2020 at 12:58 AM Jakub Kicinski wrote:
> > > On Fri, 10 Jan 2020 17:11:58 +0530, sunil.kovvuri@gmail.com wrote:
> > > > +static const struct otx2_stat otx2_dev_stats[] = {
> > > > +     OTX2_DEV_STAT(rx_bytes),
> > > > +     OTX2_DEV_STAT(rx_frames),
> > > > +     OTX2_DEV_STAT(rx_ucast_frames),
> > > > +     OTX2_DEV_STAT(rx_bcast_frames),
> > > > +     OTX2_DEV_STAT(rx_mcast_frames),
> > > > +     OTX2_DEV_STAT(rx_drops),
> > > > +
> > > > +     OTX2_DEV_STAT(tx_bytes),
> > > > +     OTX2_DEV_STAT(tx_frames),
> > > > +     OTX2_DEV_STAT(tx_ucast_frames),
> > > > +     OTX2_DEV_STAT(tx_bcast_frames),
> > > > +     OTX2_DEV_STAT(tx_mcast_frames),
> > > > +     OTX2_DEV_STAT(tx_drops),
> > > > +};
> > >
> > > Please don't duplicate the same exact stats which are exposed via
> > > ndo_get_stats64 via ethtool.
> >
> > ndo_stats64 doesn't have separate stats for ucast, mcast and bcast on Rx and
> > Tx sides, they are combined ones. Hence added separate stats here.
> > The ones repeated here are bytes, frames and drops which are added to have
> > full set of stats at one place which could help anyone debugging pkt
> > drop etc issues.
>
> Same exact as in bytes, frames, and drops are exactly the same rather
> than e.g. one being counted by hardware and the other by software.
>
> No objection to reporting the *cast stats broken out via ethtool.

I am not getting what your objection here is, what's reported via stats64 and
ethtool both are counted by hardware. I have checked other NIC drivers and they
also do report overall pkts, bytes, drop counters via ethtool.

Is there any harm in reporting this way ?

Thanks,
Sunil.

  reply	other threads:[~2020-01-13 11:27 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-10 11:41 [PATCH 00/17] octeontx2-pf: Add network driver for physical function sunil.kovvuri
2020-01-10 11:41 ` [PATCH 01/17] octeontx2-pf: Add Marvell OcteonTX2 NIC driver sunil.kovvuri
2020-01-12 10:01   ` kbuild test robot
2020-01-12 10:01     ` kbuild test robot
2020-01-12 18:52   ` kbuild test robot
2020-01-12 18:52     ` kbuild test robot
2020-01-10 11:41 ` [PATCH 02/17] octeontx2-pf: Mailbox communication with AF sunil.kovvuri
2020-01-10 11:41 ` [PATCH 03/17] octeontx2-pf: Attach NIX and NPA block LFs sunil.kovvuri
2020-01-10 11:41 ` [PATCH 04/17] octeontx2-pf: Initialize and config queues sunil.kovvuri
2020-01-12 17:01   ` kbuild test robot
2020-01-12 17:01     ` kbuild test robot
2020-01-10 11:41 ` [PATCH 05/17] octeontx2-pf: Setup interrupts and NAPI handler sunil.kovvuri
2020-01-10 11:41 ` [PATCH 06/17] octeontx2-pf: Receive packet handling support sunil.kovvuri
2020-01-10 11:41 ` [PATCH 07/17] octeontx2-pf: Add packet transmission support sunil.kovvuri
2020-01-13  2:04   ` kbuild test robot
2020-01-13  2:04     ` kbuild test robot
2020-01-10 11:41 ` [PATCH 08/17] octeontx2-pf: Register and handle link notifications sunil.kovvuri
2020-01-10 11:41 ` [PATCH 09/17] octeontx2-pf: MTU, MAC and RX mode config support sunil.kovvuri
2020-01-10 11:41 ` [PATCH 10/17] octeontx2-pf: Error handling support sunil.kovvuri
2020-01-10 11:41 ` [PATCH 11/17] octeontx2-pf: Receive side scaling support sunil.kovvuri
2020-01-10 11:41 ` [PATCH 12/17] octeontx2-pf: TCP segmentation offload support sunil.kovvuri
2020-01-10 11:41 ` [PATCH 13/17] octeontx2-pf: Add ndo_get_stats64 sunil.kovvuri
2020-01-10 11:41 ` [PATCH 14/17] octeontx2-pf: Add basic ethtool support sunil.kovvuri
2020-01-10 19:28   ` Jakub Kicinski
2020-01-11  8:47     ` Sunil Kovvuri
2020-01-11 13:27       ` Jakub Kicinski
2020-01-13 11:27         ` Sunil Kovvuri [this message]
2020-01-10 11:41 ` [PATCH 15/17] octeontx2-pf: ethtool RSS config support sunil.kovvuri
2020-01-10 11:42 ` [PATCH 16/17] Documentation: net: octeontx2: Add RVU HW and drivers overview sunil.kovvuri
2020-01-10 11:42 ` [PATCH 17/17] MAINTAINERS: Add entry for Marvell OcteonTX2 Physical Function driver sunil.kovvuri

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=CA+sq2CcCSX4NuoyZZ020xH75s1+ii5Xc6XM5jAovUTpQtaZXfQ@mail.gmail.com \
    --to=sunil.kovvuri@gmail.com \
    --cc=cjacob@marvell.com \
    --cc=davem@davemloft.net \
    --cc=kubakici@wp.pl \
    --cc=netdev@vger.kernel.org \
    --cc=sgoutham@marvell.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.