Skip to content

Commit a473adc

Browse files
201608ybsgregkh
authored andcommitted
RDMA/erdma: Fix unset QPN of GSI QP
[ Upstream commit d4ac86b ] The QPN of the GSI QP was not set, which may cause issues. Set the QPN to 1 when creating the GSI QP. Fixes: 999a0a2 ("RDMA/erdma: Support UD QPs and UD WRs") Reviewed-by: Cheng Xu <chengyou@linux.alibaba.com> Signed-off-by: Boshi Yu <boshiyu@linux.alibaba.com> Link: https://patch.msgid.link/20250725055410.67520-4-boshiyu@linux.alibaba.com Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 5f0cb90 commit a473adc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/infiniband/hw/erdma/erdma_verbs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,8 @@ int erdma_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *attrs,
994994
old_entry = xa_store(&dev->qp_xa, 1, qp, GFP_KERNEL);
995995
if (xa_is_err(old_entry))
996996
ret = xa_err(old_entry);
997+
else
998+
qp->ibqp.qp_num = 1;
997999
} else {
9981000
ret = xa_alloc_cyclic(&dev->qp_xa, &qp->ibqp.qp_num, qp,
9991001
XA_LIMIT(1, dev->attrs.max_qp - 1),

0 commit comments

Comments
 (0)