]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: refactor the statistics updating for netdev
authorJian Shen <shenjian15@huawei.com>
Tue, 22 Jan 2019 23:39:29 +0000 (07:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 19:13:01 +0000 (11:13 -0800)
commit003ada24a16eff6d3a42c1f47663fcb179ef02c3
treeaf39f05392275f92ebd5bc83d26284b9e6c0cf16
parentde6207c9f26fa59b20d032a413187876d90b6291
net: hns3: refactor the statistics updating for netdev

In origin codes, there are some statistics item are got from mac, which
also include the packets statistics of VF. It is unreasonable. This
patch fixes it by counting them in the rx/tx processing flow.

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