diff options
| author | Konstantin Taranov <[email protected]> | 2025-01-20 17:27:07 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2025-02-03 11:56:19 +0000 |
| commit | 78683c25c80e54bf3e8015fdfb8cba2fcd03daa5 (patch) | |
| tree | ae6c6d87e4ccfc1d1b795677932061c70d615fb1 /drivers/infiniband/hw/mana/main.c | |
| parent | RDMA/rxe: Make rping work with tun device (diff) | |
| download | kernel-78683c25c80e54bf3e8015fdfb8cba2fcd03daa5.tar.gz kernel-78683c25c80e54bf3e8015fdfb8cba2fcd03daa5.zip | |
RDMA/mana_ib: Allow registration of DMA-mapped memory in PDs
Allow the HW to register DMA-mapped memory for kernel-level PDs.
Signed-off-by: Konstantin Taranov <[email protected]>
Link: https://patch.msgid.link/[email protected]
Reviewed-by: Shiraz Saleem <[email protected]>
Reviewed-by: Long Li <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mana/main.c')
| -rw-r--r-- | drivers/infiniband/hw/mana/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mana/main.c b/drivers/infiniband/hw/mana/main.c index 67c2d43135a8..45b251b91131 100644 --- a/drivers/infiniband/hw/mana/main.c +++ b/drivers/infiniband/hw/mana/main.c @@ -82,6 +82,9 @@ int mana_ib_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) mana_gd_init_req_hdr(&req.hdr, GDMA_CREATE_PD, sizeof(req), sizeof(resp)); + if (!udata) + flags |= GDMA_PD_FLAG_ALLOW_GPA_MR; + req.flags = flags; err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); |
