OSDN Git Service

net: hns3: create new set of common tqp stats APIs for PF and VF reuse
authorJie Wang <wangjie125@huawei.com>
Wed, 5 Jan 2022 14:20:12 +0000 (22:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jan 2022 14:36:36 +0000 (14:36 +0000)
commit287db5c40d15cb5ee2d3125133347b73194cba1d
treee7033d6c15f66be0da333c4ea0c3ebda9b8f8cbf
parent93969dc14fcd7fddc081e5a7e003e0e144cc401b
net: hns3: create new set of common tqp stats APIs for PF and VF reuse

This patch creates new set of common tqp stats structures and APIs for PF
and VF tqp stats module. Subfunctions such as get tqp stats, update tqp
stats and reset tqp stats are inclued in this patch.

These new common tqp stats APIs will be used to replace the old PF and VF
tqp stats APIs in next patches.

Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/Makefile
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.h [new file with mode: 0644]