[PATCH rdma-next 1/1] RDMA/mana_ib: indicate that inline data is not supported

Konstantin Taranov
2024-07-16T10:48:16Z

From: Konstantin Taranov <kotaranov@microsoft.com>

Set max_inline_data to zero during RC QP creation.

Fixes: fdefb9184962 ("RDMA/mana_ib: Implement uapi to create and destroy RC QP")
Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
---
drivers/infiniband/hw/mana/qp.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/infiniband/hw/mana/qp.c b/drivers/infiniband/hw/mana/qp.c
index 73d67c853b6f..d9f24a763e72 100644
--- a/drivers/infiniband/hw/mana/qp.c
+++ b/drivers/infiniband/hw/mana/qp.c
@@ -426,6 +426,8 @@ static int mana_ib_create_rc_qp(struct ib_qp *ibqp, struct ib_pd *ibpd,
u64 flags = 0;
u32 doorbell;

+ /* inline data is not supported */
+ attr->cap.max_inline_data = 0;
if (!udata || udata->inlen < sizeof(ucmd))
return -EINVAL;

--
2.43.0