From: Richard Dawe <rich@phekda.gotadsl.co.uk>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: Francois Romieu <romieu@fr.zoreil.com>,
Jon Mason <jdmason@us.ibm.com>,
netdev@oss.sgi.com
Subject: Re: [PATCH]: r8169: Expose hardware stats via ethtool
Date: Sun, 27 Feb 2005 22:46:50 +0000 [thread overview]
Message-ID: <42224DDA.1010907@phekda.gotadsl.co.uk> (raw)
In-Reply-To: <42209C4E.6000800@pobox.com>
Hello.
Jeff Garzik wrote:
> Richard Dawe wrote:
[snip]
>> +static const char rtl8169_gstrings_stats[][ETH_GSTRING_LEN] = {
>> + "tx_ok", "rx_ok", "tx_err", "rx_err",
>> + "rx_fifo", "frame_align", "tx_ok_1col", "tx_ok_mcol",
>> + "rx_ok_phys", "rx_ok_bcast", "rx_ok_mcast", "tx_abort",
>> + "tx_underrun",
>> +};
>
>
> Don't needlessly reformat copied code. It's one-string-per-line
> intentionally, for ease of maintenance and ease of adding new strings.
OK, I'll fix that.
> Also, I don't see why you renamed this from ethtool_stats_keys[].
I didn't copy it directly. I started off with something that looked like
the ethtool stats code from the e100 driver. Then I noticed that 8139cp
did the right thing for r8169.
I'll rename it.
>> + /* begin NIC statistics dump */
>> + RTL_W32(StatsAddrHigh, tp->nic_stats_addr >> 32);
>> + RTL_W32(StatsAddrLow, (tp->nic_stats_addr & 0xffffffff) |
>> DumpStats);
>> + RTL_R32(StatsAddrLow);
>
>
> This last RTL_R32() can be removed [from 8139cp too], because a flush
> immediately follows anyway:
[snip]
OK, will do.
Thanks, bye, Rich =]
--
Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ]
"You can't evaluate a man by logic alone."
-- McCoy, "I, Mudd", Star Trek
next prev parent reply other threads:[~2005-02-27 22:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-26 14:53 [PATCH]: r8169: Expose hardware stats via ethtool Richard Dawe
2005-02-26 15:57 ` Jeff Garzik
2005-02-27 22:46 ` Richard Dawe [this message]
2005-02-26 17:32 ` Jon Mason
2005-02-26 18:02 ` Jeff Garzik
2005-02-26 18:03 ` Jeff Garzik
2005-02-26 18:12 ` Francois Romieu
2005-02-27 22:53 ` Richard Dawe
2005-02-27 22:59 ` Jeff Garzik
2005-02-28 2:31 ` Jon Mason
2005-02-28 2:58 ` Jeff Garzik
2005-02-28 4:16 ` Ben Greear
2005-03-05 13:53 ` Richard Dawe
2005-02-26 18:36 ` Jon Mason
2005-02-26 18:26 ` Francois Romieu
2005-02-27 22:44 ` Richard Dawe
2005-02-27 19:28 ` Jon Mason
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=42224DDA.1010907@phekda.gotadsl.co.uk \
--to=rich@phekda.gotadsl.co.uk \
--cc=jdmason@us.ibm.com \
--cc=jgarzik@pobox.com \
--cc=netdev@oss.sgi.com \
--cc=romieu@fr.zoreil.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;
as well as URLs for NNTP newsgroup(s).