summaryrefslogtreecommitdiff
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorParav Pandit <parav.pandit@emulex.com>2012-06-11 15:09:20 +0400
committerRoland Dreier <roland@purestorage.com>2012-06-11 20:38:36 +0400
commita3698a9b919d2a54e3348be48ab65d102b2f105d (patch)
tree14e81f7a58dee5a6f1c700b091c546371d386790 /drivers/infiniband
parent634c5796a5c60964faf9d51892571ffe36ad24d5 (diff)
downloadlinux-a3698a9b919d2a54e3348be48ab65d102b2f105d.tar.xz
RDMA/ocrdma: Fixed RQ error CQE polling
Fix RQ/SRQ error CQE polling. Return error CQE to consumer for error case which was not returned previously. Signed-off-by: Parav Pandit <parav.pandit@emulex.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma_verbs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
index 0e88088545ac..d55d459b7fc8 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
@@ -2301,8 +2301,10 @@ static bool ocrdma_poll_err_rcqe(struct ocrdma_qp *qp, struct ocrdma_cqe *cqe,
*stop = true;
expand = false;
}
- } else
+ } else {
+ *polled = true;
expand = ocrdma_update_err_rcqe(ibwc, cqe, qp, status);
+ }
return expand;
}