net: hns3: create new set of unified hclge_comm_cmd_send APIs
authorJie Wang <wangjie125@huawei.com>
Fri, 31 Dec 2021 10:22:34 +0000 (18:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 09:51:00 +0000 (11:51 +0200)
commitf9315f3ad1863bb8e1c66b7dbd556d4b6b702f7b
treec0e1bf7ea9ce84ecc742f1d001f6c20a58c2cbe6
parentdd69c1c99a545e6670acc10b979967ba8e70529a
net: hns3: create new set of unified hclge_comm_cmd_send APIs

[ Upstream commit 8d307f8e8cf195921b10939dde673f1f039bd732 ]

This patch create new set of unified hclge_comm_cmd_send APIs for PF and VF
cmdq module. Subfunctions called by hclge_comm_cmd_send are also created
include cmdq result check, cmdq return code conversion and ring space
opertaion APIs.

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

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>
Stable-dep-of: 6639a7b95321 ("net: hns3: change type of numa_node_mask as nodemask_t")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.c [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h