Re: [PATCH v3 net-next 4/9] sunvnet: add driver stats for ethtool support

2017-02-13 Thread Shannon Nelson
On 2/11/2017 6:01 PM, David Miller wrote: From: Stephen Hemminger Date: Fri, 10 Feb 2017 16:22:08 -0800 On Fri, 10 Feb 2017 09:38:20 -0800 Shannon Nelson wrote: +static void vsw_get_ethtool_stats(struct net_device *dev, +

Re: [PATCH v3 net-next 4/9] sunvnet: add driver stats for ethtool support

2017-02-11 Thread David Miller
From: Stephen Hemminger Date: Fri, 10 Feb 2017 16:22:08 -0800 > On Fri, 10 Feb 2017 09:38:20 -0800 > Shannon Nelson wrote: > >> +static void vsw_get_ethtool_stats(struct net_device *dev, >> + struct

Re: [PATCH v3 net-next 4/9] sunvnet: add driver stats for ethtool support

2017-02-10 Thread Stephen Hemminger
On Fri, 10 Feb 2017 09:38:20 -0800 Shannon Nelson wrote: > +static void vsw_get_ethtool_stats(struct net_device *dev, > + struct ethtool_stats *estats, u64 *data) > +{ > + int i = 0; > + > + data[i++] = dev->stats.rx_packets; > +

[PATCH v3 net-next 4/9] sunvnet: add driver stats for ethtool support

2017-02-10 Thread Shannon Nelson
Since we're collecting some stats in the driver code, let's support use of the ethtool driver stats facility in both sunvnet and ldmvsw. Signed-off-by: Shannon Nelson --- drivers/net/ethernet/sun/ldmvsw.c | 63 +