Re: Getting NIC statistics using Ethtool.

2008-11-25 Thread Pranav Sawargaonkar
On Tue, Nov 25, 2008 at 2:17 PM, Paraneetharan Chandrasekaran < [EMAIL PROTECTED]> wrote: > > Hi, Thank you. But my intention is getting statistics in user > space through ethtool. The ethtool_interfaces like get_ethtool_stats, > get_drvinfo etc are in kernel space. If call the Ioctl wit

Re: Getting NIC statistics using Ethtool.

2008-11-25 Thread Paraneetharan Chandrasekaran
Hi, Thank you. But my intention is getting statistics in user space through ethtool. The ethtool_interfaces like get_ethtool_stats, get_drvinfo etc are in kernel space. If call the Ioctl with ETHTOOL_GSTATS, I dont know how to parse the returned data. What is the format of the returned st

Re: Getting NIC statistics using Ethtool.

2008-11-24 Thread Pranav Sawargaonkar
On Tue, Nov 18, 2008 at 7:30 PM, Paraneetharan Chandrasekaran < [EMAIL PROTECTED]> wrote: > 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_GSTA

RE: Getting NIC statistics using Ethtool.

2008-11-18 Thread Madhukar.Mythri
>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? Yeah, they should

Getting NIC statistics using Ethtool.

2008-11-18 Thread Paraneetharan Chandrasekaran
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 form