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>
This commit is contained in:
@ -596,7 +596,7 @@ void nes_put_cqp_request(struct nes_device *nesdev,
|
||||
* nes_post_cqp_request
|
||||
*/
|
||||
void nes_post_cqp_request(struct nes_device *nesdev,
|
||||
struct nes_cqp_request *cqp_request, int ring_doorbell)
|
||||
struct nes_cqp_request *cqp_request)
|
||||
{
|
||||
struct nes_hw_cqp_wqe *cqp_wqe;
|
||||
unsigned long flags;
|
||||
@ -624,10 +624,9 @@ void nes_post_cqp_request(struct nes_device *nesdev,
|
||||
nesdev->cqp.sq_head, nesdev->cqp.sq_tail, nesdev->cqp.sq_size,
|
||||
cqp_request->waiting, atomic_read(&cqp_request->refcount));
|
||||
barrier();
|
||||
if (ring_doorbell) {
|
||||
/* Ring doorbell (1 WQEs) */
|
||||
nes_write32(nesdev->regs+NES_WQE_ALLOC, 0x01800000 | nesdev->cqp.qp_id);
|
||||
}
|
||||
|
||||
/* Ring doorbell (1 WQEs) */
|
||||
nes_write32(nesdev->regs+NES_WQE_ALLOC, 0x01800000 | nesdev->cqp.qp_id);
|
||||
|
||||
barrier();
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user