RDMA/cxgb3: Return correct max_inline_data when creating a QP
authorJon Mason <jon@opengridcomputing.com>
Fri, 29 Feb 2008 21:53:18 +0000 (13:53 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 29 Feb 2008 21:53:18 +0000 (13:53 -0800)
Set cap.max_inline_data to the actual max inline data that the adapter
support, so that userspace apps see the right value returned.

Signed-off-by: Jon Mason <jon@opengridcomputing.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/iwch_provider.c

index df1838f8f94d9b59b700fa1212fb622b5f1e3811..ee3d63cd1f963a6ac660434fc9a1661db1875e11 100644 (file)
@@ -819,8 +819,11 @@ static struct ib_qp *iwch_create_qp(struct ib_pd *pd,
                kfree(qhp);
                return ERR_PTR(-ENOMEM);
        }
+
        attrs->cap.max_recv_wr = rqsize - 1;
        attrs->cap.max_send_wr = sqsize;
+       attrs->cap.max_inline_data = T3_MAX_INLINE;
+
        qhp->rhp = rhp;
        qhp->attr.pd = php->pdid;
        qhp->attr.scq = ((struct iwch_cq *) attrs->send_cq)->cq.cqid;