Commit 933e6dca authored by Ram Amrani's avatar Ram Amrani Committed by Doug Ledford
Browse files

RDMA/qedr: Don't reset QP when queues aren't flushed

Fail QP state transition from error to reset if SQ/RQ are not empty
and still in the process of flushing out the queued work entries.

Signed-off-by: default avatarRam Amrani <>
Signed-off-by: default avatarMichal Kalderon <>
Signed-off-by: default avatarDoug Ledford <>
parent c78c3149
...@@ -1733,6 +1733,14 @@ static int qedr_update_qp_state(struct qedr_dev *dev, ...@@ -1733,6 +1733,14 @@ static int qedr_update_qp_state(struct qedr_dev *dev,
/* ERR->XXX */ /* ERR->XXX */
switch (new_state) { switch (new_state) {
if ((qp-> != qp->rq.cons) ||
(qp-> != qp->sq.cons)) {
"Error->Reset with rq/sq not empty rq.cons=%x sq.cons=%x\n",
qp->, qp->rq.cons, qp->,
status = -EINVAL;
break; break;
default: default:
status = -EINVAL; status = -EINVAL;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment