提交 865cea40 编写于 作者: R Ram Amrani 提交者: Doug Ledford

RDMA/qedr: Return success when not changing QP state

If the user is requesting us to change the QP state to the same state
that it is already in, return success instead of failure.
Signed-off-by: NRam Amrani <Ram.Amrani@cavium.com>
Signed-off-by: NMichal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 20f5e10e
...@@ -1657,7 +1657,7 @@ static int qedr_update_qp_state(struct qedr_dev *dev, ...@@ -1657,7 +1657,7 @@ static int qedr_update_qp_state(struct qedr_dev *dev,
int status = 0; int status = 0;
if (new_state == qp->state) if (new_state == qp->state)
return 1; return 0;
switch (qp->state) { switch (qp->state) {
case QED_ROCE_QP_STATE_RESET: case QED_ROCE_QP_STATE_RESET:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册