diff options
author | Roland Dreier <rolandd@cisco.com> | 2008-07-15 02:48:49 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-07-15 02:48:49 -0400 |
commit | 8294f29767c53e97664a27db9974adea8e2ea95b (patch) | |
tree | b2c2ab078539b486667fcb1464a02bedeb5b7c85 /drivers/infiniband/hw/nes/nes_verbs.c | |
parent | 52c8084b740c42af27d5bfa62cec7079d12fbc2b (diff) |
RDMA/nes: Get rid of ring_doorbell parameter of nes_post_cqp_request()
Every caller of nes_post_cqp_request() passed it NES_CQP_REQUEST_RING_DOORBELL,
so just remove that parameter and always ring the doorbell.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Acked-by: Faisal Latif <flatif@neteffect.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_verbs.c')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_verbs.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c index 464a98a6e119..e3939d13484e 100644 --- a/drivers/infiniband/hw/nes/nes_verbs.c +++ b/drivers/infiniband/hw/nes/nes_verbs.c | |||
@@ -118,7 +118,7 @@ static struct ib_mw *nes_alloc_mw(struct ib_pd *ibpd) { | |||
118 | set_wqe_32bit_value(cqp_wqe->wqe_words, NES_CQP_STAG_WQE_STAG_IDX, stag); | 118 | set_wqe_32bit_value(cqp_wqe->wqe_words, NES_CQP_STAG_WQE_STAG_IDX, stag); |
119 | 119 | ||
120 | atomic_set(&cqp_request->refcount, 2); | 120 | atomic_set(&cqp_request->refcount, 2); |
121 | nes_post_cqp_request(nesdev, cqp_request, NES_CQP_REQUEST_RING_DOORBELL); | 121 | nes_post_cqp_request(nesdev, cqp_request); |
122 | 122 | ||
123 | /* Wait for CQP */ | 123 | /* Wait for CQP */ |
124 | ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0), | 124 | ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0), |
@@ -175,7 +175,7 @@ static int nes_dealloc_mw(struct ib_mw *ibmw) | |||
175 | set_wqe_32bit_value(cqp_wqe->wqe_words, NES_CQP_STAG_WQE_STAG_IDX, ibmw->rkey); | 175 | set_wqe_32bit_value(cqp_wqe->wqe_words, NES_CQP_STAG_WQE_STAG_IDX, ibmw->rkey); |
176 | 176 | ||
177 | atomic_set(&cqp_request->refcount, 2); | 177 | atomic_set(&cqp_request->refcount, 2); |
178 | nes_post_cqp_request(nesdev, cqp_request, NES_CQP_REQUEST_RING_DOORBELL); | 178 | nes_post_cqp_request(nesdev, cqp_request); |
179 | 179 | ||
180 | /* Wait for CQP */ | 180 | /* Wait for CQP */ |
181 | nes_debug(NES_DBG_MR, "Waiting for deallocate STag 0x%08X to complete.\n", | 181 | nes_debug(NES_DBG_MR, "Waiting for deallocate STag 0x%08X to complete.\n", |
@@ -477,7 +477,7 @@ static struct ib_fmr *nes_alloc_fmr(struct ib_pd *ibpd, | |||
477 | (nesfmr->nesmr.pbls_used-1) : nesfmr->nesmr.pbls_used); | 477 | (nesfmr->nesmr.pbls_used-1) : nesfmr->nesmr.pbls_used); |
478 | 478 | ||
479 | atomic_set(&cqp_request->refcount, 2); | 479 | atomic_set(&cqp_request->refcount, 2); |
480 | nes_post_cqp_request(nesdev, cqp_request, NES_CQP_REQUEST_RING_DOORBELL); | 480 | nes_post_cqp_request(nesdev, cqp_request); |
481 | 481 | ||
482 | /* Wait for CQP */ | 482 | /* Wait for CQP */ |
483 | ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0), | 483 | ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0), |
@@ -1417,7 +1417,7 @@ static struct ib_qp *nes_create_qp(struct ib_pd *ibpd, | |||
1417 | set_wqe_64bit_value(cqp_wqe->wqe_words, NES_CQP_QP_WQE_CONTEXT_LOW_IDX, u64temp); | 1417 | set_wqe_64bit_value(cqp_wqe->wqe_words, NES_CQP_QP_WQE_CONTEXT_LOW_IDX, u64temp); |
1418 | 1418 | ||
1419 | atomic_set(&cqp_request->refcount, 2); | 1419 | atomic_set(&cqp_request->refcount, 2); |
1420 | nes_post_cqp_request(nesdev, cqp_request, NES_CQP_REQUEST_RING_DOORBELL); | 1420 | nes_post_cqp_request(nesdev, cqp_request); |
1421 | 1421 | ||
1422 | /* Wait for CQP */ | 1422 | /* Wait for CQP */ |
1423 | nes_debug(NES_DBG_QP, "Waiting for create iWARP QP%u to complete.\n", | 1423 | nes_debug(NES_DBG_QP, "Waiting for create iWARP QP%u to complete.\n", |
@@ -1744,7 +1744,7 @@ static struct ib_cq *nes_create_cq(struct ib_device *ibdev, int entries, | |||
1744 | cpu_to_le32(((u32)((u64temp) >> 33)) & 0x7FFFFFFF); | 1744 | cpu_to_le32(((u32)((u64temp) >> 33)) & 0x7FFFFFFF); |
1745 | 1745 | ||
1746 | atomic_set(&cqp_request->refcount, 2); | 1746 | atomic_set(&cqp_request->refcount, 2); |
1747 | nes_post_cqp_request(nesdev, cqp_request, NES_CQP_REQUEST_RING_DOORBELL); | 1747 | nes_post_cqp_request(nesdev, cqp_request); |
1748 | 1748 | ||
1749 | /* Wait for CQP */ | 1749 | /* Wait for CQP */ |
1750 | nes_debug(NES_DBG_CQ, "Waiting for create iWARP CQ%u to complete.\n", | 1750 | nes_debug(NES_DBG_CQ, "Waiting for create iWARP CQ%u to complete.\n", |
@@ -1841,7 +1841,7 @@ static int nes_destroy_cq(struct ib_cq *ib_cq) | |||
1841 | (nescq->hw_cq.cq_number | ((u32)PCI_FUNC(nesdev->pcidev->devfn) << 16))); | 1841 | (nescq->hw_cq.cq_number | ((u32)PCI_FUNC(nesdev->pcidev->devfn) << 16))); |
1842 | nes_free_resource(nesadapter, nesadapter->allocated_cqs, nescq->hw_cq.cq_number); | 1842 | nes_free_resource(nesadapter, nesadapter->allocated_cqs, nescq->hw_cq.cq_number); |
1843 | atomic_set(&cqp_request->refcount, 2); | 1843 | atomic_set(&cqp_request->refcount, 2); |
1844 | nes_post_cqp_request(nesdev, cqp_request, NES_CQP_REQUEST_RING_DOORBELL); | 1844 | nes_post_cqp_request(nesdev, cqp_request); |
1845 | 1845 | ||
1846 | /* Wait for CQP */ | 1846 | /* Wait for CQP */ |
1847 | nes_debug(NES_DBG_CQ, "Waiting for destroy iWARP CQ%u to complete.\n", | 1847 | nes_debug(NES_DBG_CQ, "Waiting for destroy iWARP CQ%u to complete.\n", |
@@ -1987,7 +1987,7 @@ static int nes_reg_mr(struct nes_device *nesdev, struct nes_pd *nespd, | |||
1987 | barrier(); | 1987 | barrier(); |
1988 | 1988 | ||
1989 | atomic_set(&cqp_request->refcount, 2); | 1989 | atomic_set(&cqp_request->refcount, 2); |
1990 | nes_post_cqp_request(nesdev, cqp_request, NES_CQP_REQUEST_RING_DOORBELL); | 1990 | nes_post_cqp_request(nesdev, cqp_request); |
1991 | 1991 | ||
1992 | /* Wait for CQP */ | 1992 | /* Wait for CQP */ |
1993 | ret = wait_event_timeout(cqp_request->waitq, (0 != cqp_request->request_done), | 1993 | ret = wait_event_timeout(cqp_request->waitq, (0 != cqp_request->request_done), |
@@ -2638,7 +2638,7 @@ static int nes_dereg_mr(struct ib_mr *ib_mr) | |||
2638 | set_wqe_32bit_value(cqp_wqe->wqe_words, NES_CQP_STAG_WQE_STAG_IDX, ib_mr->rkey); | 2638 | set_wqe_32bit_value(cqp_wqe->wqe_words, NES_CQP_STAG_WQE_STAG_IDX, ib_mr->rkey); |
2639 | 2639 | ||
2640 | atomic_set(&cqp_request->refcount, 2); | 2640 | atomic_set(&cqp_request->refcount, 2); |
2641 | nes_post_cqp_request(nesdev, cqp_request, NES_CQP_REQUEST_RING_DOORBELL); | 2641 | nes_post_cqp_request(nesdev, cqp_request); |
2642 | 2642 | ||
2643 | /* Wait for CQP */ | 2643 | /* Wait for CQP */ |
2644 | nes_debug(NES_DBG_MR, "Waiting for deallocate STag 0x%08X completed\n", ib_mr->rkey); | 2644 | nes_debug(NES_DBG_MR, "Waiting for deallocate STag 0x%08X completed\n", ib_mr->rkey); |
@@ -2809,7 +2809,7 @@ int nes_hw_modify_qp(struct nes_device *nesdev, struct nes_qp *nesqp, | |||
2809 | set_wqe_64bit_value(cqp_wqe->wqe_words, NES_CQP_QP_WQE_CONTEXT_LOW_IDX, (u64)nesqp->nesqp_context_pbase); | 2809 | set_wqe_64bit_value(cqp_wqe->wqe_words, NES_CQP_QP_WQE_CONTEXT_LOW_IDX, (u64)nesqp->nesqp_context_pbase); |
2810 | 2810 | ||
2811 | atomic_set(&cqp_request->refcount, 2); | 2811 | atomic_set(&cqp_request->refcount, 2); |
2812 | nes_post_cqp_request(nesdev, cqp_request, NES_CQP_REQUEST_RING_DOORBELL); | 2812 | nes_post_cqp_request(nesdev, cqp_request); |
2813 | 2813 | ||
2814 | /* Wait for CQP */ | 2814 | /* Wait for CQP */ |
2815 | if (wait_completion) { | 2815 | if (wait_completion) { |