Re: [PATCH] update max_inline_data when creating a qp

From: Steve Wise
Date: Fri Feb 29 2008 - 11:50:04 EST


Acked-by: Steve Wise <swise@xxxxxxxxxxxxxxxxxxxxx>

Jon Mason wrote:
mthca modifies the attributes passed in when creating the qp to have
(amongst other things) the max_inline_data. While cxgb3 does modify
the attributes of some of the parameters, it does not modify the
max_inline_data to be what the adapter supports. cxgb should conform
to the same behavior as mthca (as some user space programs are
expecting this) and return the max_inline_data.

Signed-off-by: Jon Mason <jon@xxxxxxxxxxxxxxxxxxxxx>
---
drivers/infiniband/hw/cxgb3/iwch_provider.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c b/drivers/infiniband/hw/cxgb3/iwch_provider.c
index 800ef6d..5f0c9d3 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_provider.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_provider.c
@@ -818,8 +818,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;

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/