Skip to content

Commit b9616f4

Browse files
Weihang Ligregkh
authored andcommitted
RDMA/hns: Fix missing sq_sig_type when querying QP
[ Upstream commit 05df492 ] 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/1600509802-44382-9-git-send-email-liweihang@huawei.com Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 0aabf99 commit b9616f4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/infiniband/hw/hns/hns_roce_hw_v2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4791,6 +4791,7 @@ static int hns_roce_v2_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr,
47914791
}
47924792

47934793
qp_init_attr->cap = qp_attr->cap;
4794+
qp_init_attr->sq_sig_type = hr_qp->sq_signal_bits;
47944795

47954796
out:
47964797
mutex_unlock(&hr_qp->mutex);

0 commit comments

Comments
 (0)