]> 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)
commitc427dc023ba73e4e8b799570ff03d353f05b202e
tree4aae34c37815882126365fce6415f71f84b22489
parent4024d63f2210e5363593a11692d89e99d9ce84b4
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