net: hns3: refactor VF tqp stats APIs with new common tqp stats APIs
authorJie Wang <wangjie125@huawei.com>
Wed, 5 Jan 2022 14:20:14 +0000 (22:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jan 2022 14:36:37 +0000 (14:36 +0000)
commit4afc310cf9a83108d3cd6327a790eb89eaea7726
tree1448da27aa2d4f3cac7f99eccdd94c9796f60dc8
parentadd7645c841cc481fbe927bd5c9b127800e2964d
net: hns3: refactor VF tqp stats APIs with new common tqp stats APIs

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

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

Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h