]> 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)
commitf65caa0227542739263c2ddaeb9ce33713ad50a2
tree615af3afb3bf8c8928effc188ff3e4895eff399c
parentaef5963d0ec8bf59ff985ab0b69b781cf5bc13e2
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