diff options
author | Amrani, Ram <Ram.Amrani@cavium.com> | 2016-12-22 13:40:33 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-22 17:36:12 +0100 |
commit | c7eb3bced78fe83119b90d730ab58a572eb80e29 (patch) | |
tree | ba3c4e542f73cd6630b9eb5ebaad222e525c8478 /drivers/infiniband/hw/qedr/verbs.c | |
parent | i40iw: Set 128B as the only supported RQ WQE size (diff) | |
download | linux-c7eb3bced78fe83119b90d730ab58a572eb80e29.tar.xz linux-c7eb3bced78fe83119b90d730ab58a572eb80e29.zip |
qedr: configure the number of CQEs on CQ creation
Configure ibcq->cqe when a CQ is created.
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Reviewed-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/infiniband/hw/qedr/verbs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 302fb05e6e6f..73df639755fa 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -890,6 +890,8 @@ struct ib_cq *qedr_create_cq(struct ib_device *ibdev, pbl_ptr = cq->q.pbl_tbl->pa; page_cnt = cq->q.pbl_info.num_pbes; + + cq->ibcq.cqe = chain_entries; } else { cq->cq_type = QEDR_CQ_TYPE_KERNEL; @@ -905,6 +907,7 @@ struct ib_cq *qedr_create_cq(struct ib_device *ibdev, page_cnt = qed_chain_get_page_cnt(&cq->pbl); pbl_ptr = qed_chain_get_pbl_phys(&cq->pbl); + cq->ibcq.cqe = cq->pbl.capacity; } qedr_init_cq_params(cq, ctx, dev, vector, chain_entries, page_cnt, |