Home
last modified time | relevance | path

Searched hist:dc70f7c3ed34b081c02a611591c5079c53b771b8 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/infiniband/core/
H A Dcma.cdiff dc70f7c3ed34b081c02a611591c5079c53b771b8 Tue Jun 22 15:39:56 CEST 2021 Håkon Bugge <haakon.bugge@oracle.com> 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/1624369197-24578-2-git-send-email-haakon.bugge@oracle.com
Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>