mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
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>
This commit is contained in:
parent
20f5e10ef8
commit
865cea40b6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user