@@ -74,6 +74,7 @@ static const struct verbs_context_ops hns_common_ops = {
.query_qp = hns_roce_u_query_qp,
.reg_mr = hns_roce_u_reg_mr,
.rereg_mr = hns_roce_u_rereg_mr,
+ .modify_cq = hns_roce_u_modify_cq,
};
static struct verbs_context *hns_roce_alloc_context(struct ibv_device *ibdev,
@@ -279,6 +279,7 @@ struct ibv_cq *hns_roce_u_create_cq(struct ibv_context *context, int cqe,
struct ibv_comp_channel *channel,
int comp_vector);
+int hns_roce_u_modify_cq(struct ibv_cq *cq, struct ibv_modify_cq_attr *attr);
int hns_roce_u_destroy_cq(struct ibv_cq *cq);
void hns_roce_u_cq_event(struct ibv_cq *cq);
@@ -338,6 +338,13 @@ void hns_roce_u_cq_event(struct ibv_cq *cq)
to_hr_cq(cq)->arm_sn++;
}
+int hns_roce_u_modify_cq(struct ibv_cq *cq, struct ibv_modify_cq_attr *attr)
+{
+ struct ibv_modify_cq cmd = {};
+
+ return ibv_cmd_modify_cq(cq, attr, &cmd, sizeof(cmd));
+}
+
int hns_roce_u_destroy_cq(struct ibv_cq *cq)
{
int ret;
This patch adds modify cq verbs for hip08 libhns. Signed-off-by: Lijun Ou <oulijun@huawei.com> --- providers/hns/hns_roce_u.c | 1 + providers/hns/hns_roce_u.h | 1 + providers/hns/hns_roce_u_verbs.c | 7 +++++++ 3 files changed, 9 insertions(+)