Skip to content

Commit df06510

Browse files
oulijunjgunthorpe
authored andcommitted
RDMA/hns: Enable modify_cq for uverbs.
The driver implements the modify_cq callback, but did not set the bit to expose it to userspace. Signed-off-by: Lijun Ou <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 0c4a0e2 commit df06510

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/infiniband/hw/hns/hns_roce_main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ static int hns_roce_register_device(struct hns_roce_dev *hr_dev)
534534
(1ULL << IB_USER_VERBS_CMD_QUERY_QP) |
535535
(1ULL << IB_USER_VERBS_CMD_DESTROY_QP);
536536

537+
ib_dev->uverbs_ex_cmd_mask |=
538+
(1ULL << IB_USER_VERBS_EX_CMD_MODIFY_CQ);
539+
537540
/* HCA||device||port */
538541
ib_dev->modify_device = hns_roce_modify_device;
539542
ib_dev->query_device = hns_roce_query_device;

0 commit comments

Comments
 (0)