]> 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)
commit2c3288c288b3358e1fa842792430be9fa9c8cdb0
treeaf39f05392275f92ebd5bc83d26284b9e6c0cf16
parent1fef828497214a2f955fb585d8c4aef5954f1d58
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