mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
RDMA/erdma: Fix unset QPN of GSI QP
The QPN of the GSI QP was not set, which may cause issues.
Set the QPN to 1 when creating the GSI QP.
Fixes: 999a0a2e9b
("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>
This commit is contained in:
parent
d5c74713f0
commit
d4ac86b475
@ -994,6 +994,8 @@ int erdma_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *attrs,
|
|||||||
old_entry = xa_store(&dev->qp_xa, 1, qp, GFP_KERNEL);
|
old_entry = xa_store(&dev->qp_xa, 1, qp, GFP_KERNEL);
|
||||||
if (xa_is_err(old_entry))
|
if (xa_is_err(old_entry))
|
||||||
ret = xa_err(old_entry);
|
ret = xa_err(old_entry);
|
||||||
|
else
|
||||||
|
qp->ibqp.qp_num = 1;
|
||||||
} else {
|
} else {
|
||||||
ret = xa_alloc_cyclic(&dev->qp_xa, &qp->ibqp.qp_num, qp,
|
ret = xa_alloc_cyclic(&dev->qp_xa, &qp->ibqp.qp_num, qp,
|
||||||
XA_LIMIT(1, dev->attrs.max_qp - 1),
|
XA_LIMIT(1, dev->attrs.max_qp - 1),
|
||||||
|
Loading…
Reference in New Issue
Block a user