[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ad602c10-c5da-0378-98f9-b73106803c45@oracle.com>
Date: Mon, 13 Feb 2017 09:15:17 -0800
From: Shannon Nelson <shannon.nelson@...cle.com>
To: David Miller <davem@...emloft.net>, stephen@...workplumber.org
Cc: netdev@...r.kernel.org, sparclinux@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 net-next 4/9] sunvnet: add driver stats for ethtool
support
On 2/11/2017 6:01 PM, David Miller wrote:
> From: Stephen Hemminger <stephen@...workplumber.org>
> Date: Fri, 10 Feb 2017 16:22:08 -0800
>
>> On Fri, 10 Feb 2017 09:38:20 -0800
>> Shannon Nelson <shannon.nelson@...cle.com> 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_packets;
>>> + data[i++] = dev->stats.rx_bytes;
>>> + data[i++] = dev->stats.tx_bytes;
>>> + data[i++] = dev->stats.rx_errors;
>>> + data[i++] = dev->stats.tx_errors;
>>> + data[i++] = dev->stats.rx_dropped;
>>> + data[i++] = dev->stats.tx_dropped;
>>> + data[i++] = dev->stats.multicast;
>>
>> Please do not duplicate regular network statistics into ethtool.
>> This doesn't really add any value.
>
> Agreed.
>
Okay, I'll drop this patch.
sln
Powered by blists - more mailing lists