]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc87684408a6b2146049825e68cf1b025a2036a2d
treef6014d0d71cbe8c29561a19a40065cdb6cfb19e4
parentda5d6c10b00e2491da2bfdd0393260b3eebfbd7d
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