]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitd3ec4ef669379bf69891415b4f1397a26a81932c
treeaf39f05392275f92ebd5bc83d26284b9e6c0cf16
parentc376fa1aae6328beb5551e92fa84f4441fdde399
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