]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Dec 2021 14:25:46 +0000 (14:25 +0000)
commit1bea5c555946978fc5b76235b589728c56909174
tree4aae34c37815882126365fce6415f71f84b22489
parent009583ce4ce3a75bed889f97d250e851e8f8d31c
net: hns3: create new set of unified hclge_comm_cmd_send APIs

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>
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