Skip to content

Commit d9fbd90

Browse files
Michal Kalderongregkh
authored andcommitted
RDMA/qedr: Fix inline size returned for iWARP
[ Upstream commit fbf5802 ] commit 59e8970 ("RDMA/qedr: Return max inline data in QP query result") changed query_qp max_inline size to return the max roce inline size. When iwarp was introduced, this should have been modified to return the max inline size based on protocol. This size is cached in the device attributes Fixes: 69ad0e7 ("RDMA/qedr: Add support for iWARP in user space") Link: https://lore.kernel.org/r/20200902165741.8355-8-michal.kalderon@marvell.com Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 08685dc commit d9fbd90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/infiniband/hw/qedr/verbs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2637,7 +2637,7 @@ int qedr_query_qp(struct ib_qp *ibqp,
26372637
qp_attr->cap.max_recv_wr = qp->rq.max_wr;
26382638
qp_attr->cap.max_send_sge = qp->sq.max_sges;
26392639
qp_attr->cap.max_recv_sge = qp->rq.max_sges;
2640-
qp_attr->cap.max_inline_data = ROCE_REQ_MAX_INLINE_DATA_SIZE;
2640+
qp_attr->cap.max_inline_data = dev->attr.max_inline;
26412641
qp_init_attr->cap = qp_attr->cap;
26422642

26432643
qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE;

0 commit comments

Comments
 (0)