RDMA/ocrdma: Prevent CQ-Doorbell floods
authorDevesh Sharma <devesh.sharma@avagotech.com>
Tue, 20 Oct 2015 08:47:59 +0000 (14:17 +0530)
committerDoug Ledford <dledford@redhat.com>
Wed, 21 Oct 2015 21:28:19 +0000 (17:28 -0400)
commitaf74d1956f780253d643a15f30d6aaa1c2e4836d
treed579cb2622fd89b71b3b798a78ef558973809475
parentaeb922df2c6fc3fc21fd7ec4b9ae7e845e541450
RDMA/ocrdma: Prevent CQ-Doorbell floods

Changing CQ-Doorbell(DB) logic to prevent DB floods, it is supposed to be
pressed only if any hw CQE is polled. If cq-arm was requested
previously then don't bother about number of hw CQEs polled and
arm the CQ.

Signed-off-by: Devesh Sharma <devesh.sharma@avagotech.com>
Signed-off-by: Selvin Xavier <selvin.xavier@avagotech.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c