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,
+ struct ethtool_stats *estats, u64 *da
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 ethtool_stats *estats, u64 *data)
>> +{
>> +int i = 0;
>> +
>>
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;
> + data[i++] = dev->stats.tx
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 +
drivers/net/ethernet/sun/sunvnet.c|