RDMA/ocrdma: Fixed RQ error CQE polling
authorParav Pandit <parav.pandit@emulex.com>
Mon, 11 Jun 2012 11:09:20 +0000 (16:39 +0530)
committerRoland Dreier <roland@purestorage.com>
Mon, 11 Jun 2012 16:38:36 +0000 (09:38 -0700)
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>
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c

index 0e88088545ac54c6b75c91b22e9721fec3dde75f..d55d459b7fc82e4b7e6db4fe30c7301351fd2106 100644 (file)
@@ -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;
 }