diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c index 43ab590f9aaca2b1fc1ba4b605571ecb3e94e4a2..e3b188b2bb4ca406adc86f6f8e1dee05b5af37c2 100644 --- a/drivers/infiniband/hw/hns/hns_roce_main.c +++ b/drivers/infiniband/hw/hns/hns_roce_main.c @@ -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); }