OSDN Git Service

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)
commit8d307f8e8cf195921b10939dde673f1f039bd732
tree4aae34c37815882126365fce6415f71f84b22489
parent6befad603d79be43cfece9f41309e5cc9546beba
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