]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: refactor PF tqp stats APIs with new common tqp stats APIs
authorJie Wang <wangjie125@huawei.com>
Wed, 5 Jan 2022 14:20:13 +0000 (22:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jan 2022 14:36:36 +0000 (14:36 +0000)
commit6ff18c1775a1f26797d93fef209eb826c8d0b3a9
tree9536e6d403a3c9c9f331a7a96d889360be625f03
parent987d836461f227a2e227e12677525f8d65db2bfa
net: hns3: refactor PF tqp stats APIs with new common tqp stats APIs

This patch firstly uses new tqp struct(hclge_comm_tqp) and deletes the
old PF tqp struct(hclge_tqp). All the tqp stats members used in PF module
are modified according to the new hclge_comm_tqp.

Secondly PF tqp stats APIs are refactored to use new common tqp stats APIs.
The old tqp stats APIs in PF are deleted.

Signed-off-by: Jie Wang <wangjie125@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