diff options
author | Ram Amrani <Ram.Amrani@Cavium.com> | 2017-01-24 14:50:34 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 23:34:36 +0300 |
commit | 865cea40b69741c3da2574176876463233b2b67c (patch) | |
tree | d9350d5ff8ac8b97150019857ac3c6298f026d66 /drivers | |
parent | 20f5e10ef8bcf29a915642245b66e5a132e38fc4 (diff) | |
download | linux-865cea40b69741c3da2574176876463233b2b67c.tar.xz |
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: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/qedr/verbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 84dcd73bd57b..27d90a82d731 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -1657,7 +1657,7 @@ static int qedr_update_qp_state(struct qedr_dev *dev, int status = 0; if (new_state == qp->state) - return 1; + return 0; switch (qp->state) { case QED_ROCE_QP_STATE_RESET: |