Commit d1fc91be authored by Yonatan Nachum's avatar Yonatan Nachum Committed by Leon Romanovsky
Browse files

RDMA/efa: Use extended inline buff size for inline validation



On QP creation we validate the requested max inline size is supported by
the device. Use the new extended max inline size instead of the old one
to support actual max inline available.

Reviewed-by: default avatarMichael Margolin <mrgolin@amazon.com>
Signed-off-by: default avatarYonatan Nachum <ynachum@amazon.com>
Link: https://patch.msgid.link/20260217112304.36849-4-ynachum@amazon.com


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent e736a223
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -641,11 +641,11 @@ static int efa_qp_validate_cap(struct efa_dev *dev,
			  init_attr->cap.max_recv_sge, dev->dev_attr.max_rq_sge);
		return -EINVAL;
	}
	if (init_attr->cap.max_inline_data > dev->dev_attr.inline_buf_size) {
	if (init_attr->cap.max_inline_data > dev->dev_attr.inline_buf_size_ex) {
		ibdev_dbg(&dev->ibdev,
			  "qp: requested inline data[%u] exceeds the max[%u]\n",
			  init_attr->cap.max_inline_data,
			  dev->dev_attr.inline_buf_size);
			  dev->dev_attr.inline_buf_size_ex);
		return -EINVAL;
	}