summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorKonstantin Taranov <kotaranov@microsoft.com>2025-01-20 09:27:08 -0800
committerLeon Romanovsky <leon@kernel.org>2025-02-03 06:56:19 -0500
commit6e1b8bdcd04f4e84c924489e2f837cf620002b69 (patch)
treed2b2126730a9747e6ead5e2fa206e174d6bd2034 /include/net
parent78683c25c80e54bf3e8015fdfb8cba2fcd03daa5 (diff)
RDMA/mana_ib: implement get_dma_mr
Implement allocation of DMA-mapped memory regions. Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com> Link: https://patch.msgid.link/1737394039-28772-3-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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/mana/gdma.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/mana/gdma.h b/include/net/mana/gdma.h
index 03e1b257953e..a94b04ea926f 100644
--- a/include/net/mana/gdma.h
+++ b/include/net/mana/gdma.h
@@ -801,6 +801,11 @@ struct gdma_destory_pd_resp {
};/* HW DATA */
enum gdma_mr_type {
+ /*
+ * Guest Physical Address - MRs of this type allow access
+ * to any DMA-mapped memory using bus-logical address
+ */
+ GDMA_MR_TYPE_GPA = 1,
/* Guest Virtual Address - MRs of this type allow access
* to memory mapped by PTEs associated with this MR using a virtual
* address that is set up in the MST