提交 6071f92f 编写于 作者: W Wenpeng Liang 提交者: Zheng Zengkai

RDMA/hns: Add support for open XRC QP

driver inclusion
category: Bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I61RNU

----------------------------------------------------------

Use urt to run the open xrc qp business, and the following
error occurs:
Create qp failed.

because the driver does not have an ex_cmd flag, related
ioctl() or syscall() will fail to execute. so add open
xrc qp cmd flag.

Fixes: ae394640 ("RDMA/hns: Add support for XRC on HIP09")
Signed-off-by: NWenpeng Liang <liangwenpeng@huawei.com>
Reviewed-by: NYangyang Li <liyangyang20@huawei.com>
Reviewed-by: NYue Haibing <yuehaibing@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 ae10c996
......@@ -708,7 +708,8 @@ static int hns_roce_register_device(struct hns_roce_dev *hr_dev)
ib_dev->uverbs_cmd_mask |=
(1ULL << IB_USER_VERBS_CMD_OPEN_XRCD) |
(1ULL << IB_USER_VERBS_CMD_CLOSE_XRCD) |
(1ULL << IB_USER_VERBS_CMD_CREATE_XSRQ);
(1ULL << IB_USER_VERBS_CMD_CREATE_XSRQ) |
(1ULL << IB_USER_VERBS_CMD_OPEN_QP);
ib_set_device_ops(ib_dev, &hns_roce_dev_xrcd_ops);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册