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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Konstantin Taranov <kotaranov@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux