RDMA/qedr: Return max inline data in QP query result
authorRam Amrani <Ram.Amrani@Cavium.com>
Tue, 24 Jan 2017 11:50:35 +0000 (13:50 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 24 Jan 2017 20:34:37 +0000 (15:34 -0500)
Return the maximum supported amount of inline data, not the qp's current
configured inline data size, when filling out the results of a query
qp call.

Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qedr/verbs.c

index 27d90a82d7319ef6e41c34c467df0939adfb72e1..bb907b14c9880e6e0d08850aefdd1f3a9b61439e 100644 (file)
@@ -2028,7 +2028,7 @@ int qedr_query_qp(struct ib_qp *ibqp,
        qp_attr->cap.max_recv_wr = qp->rq.max_wr;
        qp_attr->cap.max_send_sge = qp->sq.max_sges;
        qp_attr->cap.max_recv_sge = qp->rq.max_sges;
-       qp_attr->cap.max_inline_data = qp->max_inline_data;
+       qp_attr->cap.max_inline_data = ROCE_REQ_MAX_INLINE_DATA_SIZE;
        qp_init_attr->cap = qp_attr->cap;
 
        memcpy(&qp_attr->ah_attr.grh.dgid.raw[0], &params.dgid.bytes[0],