net: hns3: Add packet statistics of netdev
authorJian Shen <shenjian15@huawei.com>
Fri, 5 Jan 2018 10:18:16 +0000 (18:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 19:06:18 +0000 (14:06 -0500)
commit8491000754796c838a0081c267f9dd54ad2ccba3
treef6014d0d71cbe8c29561a19a40065cdb6cfb19e4
parentb59f558c6a7ce8731035621f0b175b24ba443da1
net: hns3: Add packet statistics of netdev

Add packet statistics of netdev for ethtool -S, in
order to show the statistics data for current net
device.

Remove update_stats() calling because it has been
completed in hns3_get_netdev_stats().

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c