RDMA/bnxt_re: Report MISSED_EVENTS in req_notify_cq
authorSelvin Xavier <selvin.xavier@broadcom.com>
Thu, 29 Jun 2017 19:28:18 +0000 (12:28 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Jul 2017 15:20:50 +0000 (11:20 -0400)
commit499e456981d376ef614e257d5dcb280581db9ac6
treecc23bc5c9e008a67b134f591f7930836a069c4b9
parent10d1dedf9b428ed776f244eb8b43f28974da3fb0
RDMA/bnxt_re: Report MISSED_EVENTS in req_notify_cq

While invoking the req_notify_cq hook, ULPs can request
whether the CQs have any CQEs pending. If CQEs are pending,
drivers can indicate  it by returning 1 for req_notify_cq.
The stack will poll CQ again till CQ is empty.

This patch peeks the CQ for any valid entries and return accordingly.

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/qplib_fp.c
drivers/infiniband/hw/bnxt_re/qplib_fp.h