Search Linux Wireless

Re: [RFC 2/2] mac80211: Support getting sta_info stats via ethtool.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/16/2012 07:18 AM, Florian Fainelli wrote:
Hello,

Le 03/16/12 14:49, John W. Linville a écrit :
On Thu, Mar 15, 2012 at 11:56:24AM -0700, Ben Greear wrote:
On 03/15/2012 11:52 AM, Johannes Berg wrote:
On Thu, 2012-03-15 at 10:39 -0700, greearb@xxxxxxxxxxxxxxx wrote:
From: Ben Greear<greearb@xxxxxxxxxxxxxxx>

This lets ethtool print out stats related to station
interfaces. Does not yet get stats from the underlying
driver.

Hmm. What's the advantage of using ethtool over iw, which already has a
bunch of these numbers?

Well, ethtool api might be easier for some apps to use,
and perhaps easier for users to read if all they want
are stats.

And they can use the same tool for both wired and wireless interfaces
-- could be handy.

iw already provides statistics which are relevant for wireless interfaces. I really don't see the point in also reporting them via ethtool, also it is going to
be error prone if someone updates the netlink interface and forgets about the ethtool one.

Ethtool provides what it provides.  If it's missing a stat, I or someone else can add it.

And if it's not there, then users can do without or get it elsewhere.

iw does not provide any way to get underlying wifi radio counters, and
the only other way I've found is to parse various debugfs files that
are subject to change at a whim.  Ethtool is a step up from that at least.

iw is also not supposed to be screen-scraped, while ethtool stats are a
fairly easily parsed output so scripts and such could use that.

Thanks,
Ben

--
Florian


--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux