aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/provider.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/provider.c')
-rw-r--r--drivers/infiniband/hw/cxgb4/provider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/cxgb4/provider.c b/drivers/infiniband/hw/cxgb4/provider.c
index 67c4a6908021..72e3b69d1b76 100644
--- a/drivers/infiniband/hw/cxgb4/provider.c
+++ b/drivers/infiniband/hw/cxgb4/provider.c
@@ -318,7 +318,7 @@ static int c4iw_query_device(struct ib_device *ibdev,
318 props->vendor_id = (u32)dev->rdev.lldi.pdev->vendor; 318 props->vendor_id = (u32)dev->rdev.lldi.pdev->vendor;
319 props->vendor_part_id = (u32)dev->rdev.lldi.pdev->device; 319 props->vendor_part_id = (u32)dev->rdev.lldi.pdev->device;
320 props->max_mr_size = T4_MAX_MR_SIZE; 320 props->max_mr_size = T4_MAX_MR_SIZE;
321 props->max_qp = T4_MAX_NUM_QP; 321 props->max_qp = dev->rdev.lldi.vr->qp.size / 2;
322 props->max_qp_wr = dev->rdev.hw_queue.t4_max_qp_depth; 322 props->max_qp_wr = dev->rdev.hw_queue.t4_max_qp_depth;
323 props->max_sge = T4_MAX_RECV_SGE; 323 props->max_sge = T4_MAX_RECV_SGE;
324 props->max_sge_rd = 1; 324 props->max_sge_rd = 1;
@@ -326,7 +326,7 @@ static int c4iw_query_device(struct ib_device *ibdev,
326 props->max_qp_rd_atom = min(dev->rdev.lldi.max_ordird_qp, 326 props->max_qp_rd_atom = min(dev->rdev.lldi.max_ordird_qp,
327 c4iw_max_read_depth); 327 c4iw_max_read_depth);
328 props->max_qp_init_rd_atom = props->max_qp_rd_atom; 328 props->max_qp_init_rd_atom = props->max_qp_rd_atom;
329 props->max_cq = T4_MAX_NUM_CQ; 329 props->max_cq = dev->rdev.lldi.vr->qp.size;
330 props->max_cqe = dev->rdev.hw_queue.t4_max_cq_depth; 330 props->max_cqe = dev->rdev.hw_queue.t4_max_cq_depth;
331 props->max_mr = c4iw_num_stags(&dev->rdev); 331 props->max_mr = c4iw_num_stags(&dev->rdev);
332 props->max_pd = T4_MAX_NUM_PD; 332 props->max_pd = T4_MAX_NUM_PD;