]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Remove packet statistics of public
authorPeng Li <lipeng321@huawei.com>
Wed, 19 Sep 2018 17:29:50 +0000 (18:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Sep 2018 04:20:22 +0000 (21:20 -0700)
commit7a37aec9e46cb4e015aebe21e5a20bb64d7b7c60
tree615af3afb3bf8c8928effc188ff3e4895eff399c
parent6439ed16b4d88b6b09f29f58ee9bde1b2b456f50
net: hns3: Remove packet statistics of public

All pf have permission to read packet statistics of public in hardware,
but the read operation will clear registers which cause statistical
inaccuracy.

This patch removes all packet statistics of public.

Signed-off-by: Junxin Chen <chenjunxin1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h