mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
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 <kotaranov@microsoft.com> Link: https://patch.msgid.link/1737394039-28772-2-git-send-email-kotaranov@linux.microsoft.com Reviewed-by: Shiraz Saleem <shirazsaleem@microsoft.com> Reviewed-by: Long Li <longli@microsoft.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
190797d47f
commit
78683c25c8
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -775,6 +775,7 @@ struct gdma_destroy_dma_region_req {
|
|||
|
||||
enum gdma_pd_flags {
|
||||
GDMA_PD_FLAG_INVALID = 0,
|
||||
GDMA_PD_FLAG_ALLOW_GPA_MR = 1,
|
||||
};
|
||||
|
||||
struct gdma_create_pd_req {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user