summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Taranov <kotaranov@microsoft.com>2026-09-23 06:11:53 -0700
committerLeon Romanovsky <leon@kernel.org>2026-09-28 15:13:27 -0400
commit387c51aa0ee0aeeac4571d11aca759fa74dd3ed2 (patch)
tree0232d2051c01bebcb155f27c6b05e8be9d7efc00 /include
parentafcebf3cfa0e84ea7d4399832d4b5edb24756f09 (diff)
downloadlinux-next-387c51aa0ee0aeeac4571d11aca759fa74dd3ed2.tar.gz
linux-next-387c51aa0ee0aeeac4571d11aca759fa74dd3ed2.zip
RDMA/mana_ib: Revise UD receive posting with GDMA_WR_IB_SGL
Decouple RQ WQE posting from the QP structure so it can be reused by other QP types. Batch multiple receive WQEs under a single doorbell. Introduce GDMA_WR_IB_SGL to pass SGEs directly to GDMA instead of copying them into a small stack array. Support receive WQEs with num_sge set to zero. Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com> Link: https://patch.msgid.link/20260923131155.4055875-4-kotaranov@linux.microsoft.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/mana/gdma.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/net/mana/gdma.h b/include/net/mana/gdma.h
index 06af65d50eb7..8ccbe2d5738e 100644
--- a/include/net/mana/gdma.h
+++ b/include/net/mana/gdma.h
@@ -6,6 +6,7 @@
#include <linux/dma-mapping.h>
#include <linux/netdevice.h>
+#include <rdma/ib_verbs.h>
#include "shm_channel.h"
@@ -54,6 +55,7 @@ enum gdma_work_request_flags {
GDMA_WR_NONE = 0,
GDMA_WR_OOB_IN_SGL = BIT(0),
GDMA_WR_PAD_BY_SGE0 = BIT(1),
+ GDMA_WR_IB_SGL = BIT(2),
};
enum gdma_eqe_type {
@@ -212,7 +214,10 @@ struct gdma_sge {
}; /* HW DATA */
struct gdma_wqe_request {
- struct gdma_sge *sgl;
+ union {
+ struct gdma_sge *sgl;
+ struct ib_sge *ib_sgl;
+ };
u32 num_sge;
u32 inline_oob_size;