projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20f5e10
)
RDMA/qedr: Return success when not changing QP state
author
Ram Amrani
<Ram.Amrani@Cavium.com>
Tue, 24 Jan 2017 11:50:34 +0000
(13:50 +0200)
committer
Doug Ledford
<dledford@redhat.com>
Tue, 24 Jan 2017 20:34:36 +0000
(15:34 -0500)
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>
drivers/infiniband/hw/qedr/verbs.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/qedr/verbs.c
b/drivers/infiniband/hw/qedr/verbs.c
index
84dcd73
..
27d90a8
100644
(file)
--- 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: