public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH rdma-next 1/1] RDMA/mana_ib: indicate that inline data is not supported
@ 2024-07-16 10:48 Konstantin Taranov
  2024-07-16 11:14 ` Leon Romanovsky
  0 siblings, 1 reply; 13+ messages in thread
From: Konstantin Taranov @ 2024-07-16 10:48 UTC (permalink / raw)
  To: kotaranov, weh, sharmaajay, longli, jgg, leon; +Cc: linux-rdma, linux-kernel

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


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-07-21  6:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-16 10:48 [PATCH rdma-next 1/1] RDMA/mana_ib: indicate that inline data is not supported Konstantin Taranov
2024-07-16 11:14 ` Leon Romanovsky
2024-07-16 13:42   ` Konstantin Taranov
2024-07-16 14:22     ` Leon Romanovsky
2024-07-16 14:55       ` Konstantin Taranov
2024-07-16 17:06         ` Leon Romanovsky
2024-07-16 17:25           ` [EXTERNAL] " Konstantin Taranov
2024-07-17  6:22             ` Leon Romanovsky
2024-07-17 16:34               ` Jason Gunthorpe
2024-07-18 15:05                 ` Konstantin Taranov
2024-07-18 16:48                   ` Jason Gunthorpe
2024-07-19 10:51                     ` Konstantin Taranov
2024-07-21  6:56                       ` Leon Romanovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox