> -----Original Message-----
> From: Ben Hutchings [mailto:[email protected]]
> Sent: Friday, June 21, 2013 8:39 AM
> 
> On Thu, 2013-06-20 at 20:04 +0000, Nelson, Shannon wrote:
> > > From: Ben Hutchings [mailto:[email protected]]
> > > Sent: Thursday, June 20, 2013 12:59 PM
> > >
> > > On Thu, 2013-06-20 at 19:47 +0000, Nelson, Shannon wrote:
> [...]
> > > > When ethtool -S is called on the PF's netdev, we see both the
> netdev
> > > > and the ports stats printed.  When called on non-PF connection we
> only
> > > > see the netdev stats, none of the port stats.
> > >
> > > Good point.  And this is something I've been meaning to bring up for
> > > discussion on netdev myself - we should have some naming convention
> to
> > > distinguish per-port and per-function/per-netdev statistics.
> >
> > If you've got some ideas on a convention to use, we'd be happy to set
> the precedent.
> 
> OK, how about:
> 
> 1. Statistic names are made up of "." separators and name components
> that do not include "." or whitespace.
> 2. Names of statistics for the net device as a whole have a single name
> component.
> 3. Names of statistics for the external port, where there is a useful
> distinction from the net device, follow the format:
>     "port." name-component.
> 
> Rationale: Only virtualised NIC drivers require a distinction, so the
> convention should allow other drivers to comply without changes.
> Statistics are requested on a specific net device, so that device's own
> statistics should be considered primary and not given a prefix.
> 
> Since other people have been adding or proposing to add them:
> 
> 4. Names of statistics for a single queue follow the format:
>     queue-type "-" index "." name-component
> Where queue-type is "rx" or "tx" and index is the index of the queue as
> used in the kernel.
> 
> Rationale: This queue naming is consistent with the queue objects in
> sysfs.
> 
> This should be extensible to allow for reading, say, VF statistics
> through a PF net device, e.g. "vf-" index "." name-component.
> 
> Ben.

Yes, this seems like a reasonable place to start, especially since no one else 
seems to be complaining yet.  I'll work with this a little on our current names 
and see how it looks.

Thanks,
sln

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
E1000-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit 
http://communities.intel.com/community/wired

Reply via email to