mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 06:52:34 -04:00
RDMA/i40iw: Fix for checking if the QP is destroyed
Fix for checking if the QP associated with a completion has been destroyed while processing CQ elements. If that is the case, move the CQ head to the next element and continue completion processing. Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com> Signed-off-by: Faisal Latif <faisal.latif@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
committed by
Doug Ledford
parent
6c2f76197d
commit
f8a4e76c75
@@ -2259,6 +2259,8 @@ static int i40iw_poll_cq(struct ib_cq *ibcq,
|
||||
ret = ukcq->ops.iw_cq_poll_completion(ukcq, &cq_poll_info, true);
|
||||
if (ret == I40IW_ERR_QUEUE_EMPTY) {
|
||||
break;
|
||||
} else if (ret == I40IW_ERR_QUEUE_DESTROYED) {
|
||||
continue;
|
||||
} else if (ret) {
|
||||
if (!cqe_count)
|
||||
cqe_count = -1;
|
||||
|
||||
Reference in New Issue
Block a user