commit | d3ec4ef669379bf69891415b4f1397a26a81932c | [log] [tgz] |
---|---|---|
author | Jian Shen <shenjian15@huawei.com> | Wed Jan 23 07:39:29 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Jan 23 11:13:01 2019 -0800 |
tree | af39f05392275f92ebd5bc83d26284b9e6c0cf16 | |
parent | c376fa1aae6328beb5551e92fa84f4441fdde399 [diff] |
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>