From: Devesh Sharma Date: Tue, 10 Jun 2014 14:02:12 +0000 (+0530) Subject: RDMA/ocrdma: Avoid posting DPP requests for RDMA READ X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f50f31e42fb772b62e209cf6ff5254b1bc02b756;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git RDMA/ocrdma: Avoid posting DPP requests for RDMA READ Rollback the patch which allows DPP posting of RDMA READ since this path is not yet stable in FW. Signed-off-by: Devesh Sharma Signed-off-by: Selvin Xavier Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c index 3bbf2010a821..bce4adf342ce 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c @@ -2206,7 +2206,8 @@ int ocrdma_mbx_create_qp(struct ocrdma_qp *qp, struct ib_qp_init_attr *attrs, OCRDMA_CREATE_QP_REQ_RQ_CQID_MASK; qp->rq_cq = cq; - if (pd->dpp_enabled && pd->num_dpp_qp) { + if (pd->dpp_enabled && attrs->cap.max_inline_data && pd->num_dpp_qp && + (attrs->cap.max_inline_data <= dev->attr.max_inline_data)) { ocrdma_set_create_qp_dpp_cmd(cmd, pd, qp, enable_dpp_cq, dpp_cq_id); }