]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit3152fcc69ae0636023c0a7099242614357d15a9e
tree615af3afb3bf8c8928effc188ff3e4895eff399c
parent799997a307ff65429ebca88d13d6ccb934df737a
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