Skip to content

Commit

Permalink
RDMA/hns: Fix missing sq_sig_type when querying QP
Browse files Browse the repository at this point in the history
The sq_sig_type field should be filled when querying QP, or the users may
get a wrong value.

Fixes: 926a01d ("RDMA/hns: Add QP operations support for hip08 SoC")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Weihang Li <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
  • Loading branch information
Weihang Li authored and jgunthorpe committed Sep 24, 2020
1 parent fbed9d2 commit 05df492
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/infiniband/hw/hns/hns_roce_hw_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -4905,6 +4905,7 @@ static int hns_roce_v2_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr,
}

qp_init_attr->cap = qp_attr->cap;
qp_init_attr->sq_sig_type = hr_qp->sq_signal_bits;

out:
mutex_unlock(&hr_qp->mutex);
Expand Down

0 comments on commit 05df492

Please sign in to comment.