Getting NIC statistics using Ethtool.

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

 



Hi All,
I am writing an user space application which gets the statistics from
the NIC drivers. To do this, I am using Ethtool ioctl with Ioctl
command SIOCETHTOOL and with ethtool command ETHTOOL_GSTATS along with
the address of struct ethtool_stats variable. My question is:

What would be the format of the statistics copied from the kernel
space (to the address pointed by the data field of struct
ethtool_stats) ?

Do all the drivers implement the same data format when they copy the
statistics to user space in response to this Ethtool ioctl?

If not, how can I know what format used by the driver I am working on
( I am working on Atheros driver)?

Thanks in advance,
Paraneetharan C
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux