]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: create common cmdq resource allocate/free/query APIs
authorJie Wang <wangjie125@huawei.com>
Fri, 31 Dec 2021 10:22:37 +0000 (18:22 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Dec 2021 14:25:46 +0000 (14:25 +0000)
commitd364c2acce35e78f7d0091bfc7c5333e4cc38af2
tree307e7c69ee58f1d5eb5d080f724982765f5a686e
parent05d28f15fdd1bf9a4c679af6c4ba7eb863400966
net: hns3: create common cmdq resource allocate/free/query APIs

The PF and VF cmdq module resource allocate/free/query APIs are almost the
same espect the suffixes of API names. These same implementations bring
double development and bugfix work.

This patch creates common cmdq resource allocate/free/query APIs called by
PF and VF cmdq init/uninit APIs. The next patch will use the new unified
APIs to replace init/uninit APIs.

Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.c
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h