diff options
author | Håkon Bugge <[email protected]> | 2021-06-22 15:39:56 +0200 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2021-06-24 15:29:53 -0300 |
commit | dc70f7c3ed34b081c02a611591c5079c53b771b8 (patch) | |
tree | 125754070ef9eb19a71ee11e3ef604dbec5a1574 /lib/test_overflow.c | |
parent | 7ae61c5f16671ecaf23526feb6892c8249d0c2d7 (diff) |
RDMA/cma: Remove unnecessary INIT->INIT transition
In rdma_create_qp(), a connected QP will be transitioned to the INIT
state.
Afterwards, the QP will be transitioned to the RTR state by the
cma_modify_qp_rtr() function. But this function starts by performing an
ib_modify_qp() to the INIT state again, before another ib_modify_qp() is
performed to transition the QP to the RTR state.
Hence, there is no need to transition the QP to the INIT state in
rdma_create_qp().
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Håkon Bugge <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions