From: Ethan Zhao <ethan.kernel@gmail.com>
To: Rajesh Borundia <rajesh.borundia@qlogic.com>
Cc: Ethan Zhao <ethan.zhao@oracle.com>,
Manish Chopra <manish.chopra@qlogic.com>,
Sony Chacko <sony.chacko@qlogic.com>,
netdev <netdev@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH V3] netxen: fix ethtool rx_dropped information in ethtool get_ethtool_stats()
Date: Sat, 19 Jul 2014 13:45:49 +0800 [thread overview]
Message-ID: <049BCC6F-0A2E-421A-9873-0B7ED6FFB3AC@gmail.com> (raw)
In-Reply-To: <C562D0E12CBDE44E8A0CCAB77060096701283AD344@AVMB1.qlogic.org>
在 2014年7月19日,上午2:21,Rajesh Borundia <rajesh.borundia@qlogic.com> 写道:
>> -----Original Message-----
>> From: Ethan Zhao [mailto:ethan.zhao@oracle.com]
>> Sent: Friday, July 18, 2014 9:13 AM
>> To: Manish Chopra; Sony Chacko; Rajesh Borundia; netdev
>> Cc: linux-kernel; ethan.kernel@gmail.com; Ethan Zhao
>> Subject: [PATCH V3] netxen: fix ethtool rx_dropped information in ethtool
>> get_ethtool_stats()
>>
>> netxen driver has implemented netxen_nic_get_ethtool_stats() interface,
>> but it doesn't collect stats.rxdropped in driver, so we will get different
>> rx_dropped statistic information while using ifconfig and ethtool.
>> this patch fills stats.rxdropped field with data from net core with
>> dev_get_stats() just as ixgbe driver did for some of its stats.
>
> I think ethtool stats are adapter specific. Driver does not maintain
> rx_dropped stats and we also don't get it from adapter. I am not
> sure if ethtool stats should match ifconfig stats as ifconfig also
> adds net core stats to adapter stats.
I held the same point as yours before I read more drivers implementation under
Ethernet dir, in fact there is no specification/convention that ethtool info is adapter
Specific. All information output by ethtool is based on the information name itself,
One fact we want this patch is netxen defined 'rx dropped' field but output nothing.
>
> If ethtool stats should report same values as ifconfig stats then
> we may also need to fix tx_dropped statistics.
>
at least, tx dropped output information...
Thanks,
Ethan
> Thanks,
> Rajesh
next prev parent reply other threads:[~2014-07-19 5:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-18 3:43 Ethan Zhao
2014-07-18 3:47 ` Varka Bhadram
2014-07-18 6:05 ` Ethan Zhao
2014-07-18 6:08 ` Varka Bhadram
2014-07-18 18:21 ` Rajesh Borundia
2014-07-19 5:45 ` Ethan Zhao [this message]
2014-07-19 10:19 ` Francois Romieu
2014-07-19 11:45 ` Ethan Zhao
2014-07-19 16:28 ` Francois Romieu
2014-07-20 0:43 ` Ethan Zhao
2014-07-20 2:52 ` Ethan Zhao
2014-07-20 18:01 ` Francois Romieu
2014-07-21 1:56 ` Ethan Zhao
2014-07-21 3:58 ` David Miller
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=049BCC6F-0A2E-421A-9873-0B7ED6FFB3AC@gmail.com \
--to=ethan.kernel@gmail.com \
--cc=ethan.zhao@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=manish.chopra@qlogic.com \
--cc=netdev@vger.kernel.org \
--cc=rajesh.borundia@qlogic.com \
--cc=sony.chacko@qlogic.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
all inboxes | Powered by JetHome®