]> 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)
commita253f43cec9c4e1a0e74f9c1a6286d80fdc8c726
treef6014d0d71cbe8c29561a19a40065cdb6cfb19e4
parentbe029ab3f4c5717f13f4d145f62531884282df36
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