[PATCH rdma-next v2 15/15] RDMA/mlx5: Use umem_list for QP doorbell record

Jiri Pirko
2026-04-11T14:49:39Z

From: Jiri Pirko <jiri@nvidia.com>

Pass the QP umem_list to the doorbell mapping infrastructure for
QP creation.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
---
drivers/infiniband/hw/mlx5/qp.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c
index 3edfe44f911a..6010fbb43d7a 100644
--- a/drivers/infiniband/hw/mlx5/qp.c
+++ b/drivers/infiniband/hw/mlx5/qp.c
@@ -1062,7 +1062,9 @@ static int _create_user_qp(struct mlx5_ib_dev *dev, struct ib_pd *pd,
resp->bfreg_index = MLX5_IB_INVALID_BFREG;
qp->bfregn = bfregn;

- err = mlx5_ib_db_map_user(context, ucmd->db_addr, NULL, 0, 0, &qp->db);
+ err = mlx5_ib_db_map_user(context, ucmd->db_addr,
+ qp->ibqp.umem_list, UVERBS_BUF_QP_DBR_BUF,
+ sizeof(__be32) * 2, &qp->db);
if (err) {
mlx5_ib_dbg(dev, "map failed\n");
goto err_free;
--
2.53.0