aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
diff options
context:
space:
mode:
authorNaresh Gottumukkala <bgottumukkala@emulex.com>2013-08-26 05:57:46 -0400
committerRoland Dreier <roland@purestorage.com>2013-09-03 00:18:42 -0400
commitc43e9ab84d853f499a2fd531362973c8e505b342 (patch)
tree5ca8f776c02a41eba03849a616e87e535896e706 /drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
parentcffce99051b80c90630a9fff662a1b25e278069d (diff)
RDMA/ocrdma: Increase STAG array size
1) Increase STAG Array size. 2) Max inline data size should be set to the same value used during QP creation 3) Set max_sge_rd to zero since we dont support RD transport in our adapters. 4) Max cqes reported in ibv_devinfo should be from QUERY_CONFIG. Signed-off-by: Naresh Gottumukkala <bgottumukkala@emulex.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_verbs.c')
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma_verbs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
index e554fc258a68..e934073e7052 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
@@ -85,7 +85,7 @@ int ocrdma_query_device(struct ib_device *ibdev, struct ib_device_attr *attr)
85 IB_DEVICE_LOCAL_DMA_LKEY | 85 IB_DEVICE_LOCAL_DMA_LKEY |
86 IB_DEVICE_MEM_MGT_EXTENSIONS; 86 IB_DEVICE_MEM_MGT_EXTENSIONS;
87 attr->max_sge = min(dev->attr.max_send_sge, dev->attr.max_srq_sge); 87 attr->max_sge = min(dev->attr.max_send_sge, dev->attr.max_srq_sge);
88 attr->max_sge_rd = dev->attr.max_rdma_sge; 88 attr->max_sge_rd = 0;
89 attr->max_cq = dev->attr.max_cq; 89 attr->max_cq = dev->attr.max_cq;
90 attr->max_cqe = dev->attr.max_cqe; 90 attr->max_cqe = dev->attr.max_cqe;
91 attr->max_mr = dev->attr.max_mr; 91 attr->max_mr = dev->attr.max_mr;
@@ -1365,7 +1365,7 @@ int ocrdma_query_qp(struct ib_qp *ibqp,
1365 qp_attr->cap.max_recv_wr = qp->rq.max_cnt - 1; 1365 qp_attr->cap.max_recv_wr = qp->rq.max_cnt - 1;
1366 qp_attr->cap.max_send_sge = qp->sq.max_sges; 1366 qp_attr->cap.max_send_sge = qp->sq.max_sges;
1367 qp_attr->cap.max_recv_sge = qp->rq.max_sges; 1367 qp_attr->cap.max_recv_sge = qp->rq.max_sges;
1368 qp_attr->cap.max_inline_data = dev->attr.max_inline_data; 1368 qp_attr->cap.max_inline_data = qp->max_inline_data;
1369 qp_init_attr->cap = qp_attr->cap; 1369 qp_init_attr->cap = qp_attr->cap;
1370 memcpy(&qp_attr->ah_attr.grh.dgid, &params.dgid[0], 1370 memcpy(&qp_attr->ah_attr.grh.dgid, &params.dgid[0],
1371 sizeof(params.dgid)); 1371 sizeof(params.dgid));