rds: ib: Remove two ib_modify_qp() calls
authorHåkon Bugge <haakon.bugge@oracle.com>
Wed, 31 Mar 2021 18:43:14 +0000 (20:43 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 12 Apr 2021 22:51:48 +0000 (19:51 -0300)
commit5aa54bd28ce2b066d82cdd515269b9d562bd6e66
tree027b8877446b4c7af02cc319d231d32a754161ff
parent3aeffc46afde05140551abb49efaa4563adba38c
rds: ib: Remove two ib_modify_qp() calls

For some HCAs, ib_modify_qp() is an expensive operation running
virtualized.

For both the active and passive side, the QP returned by the CM has the
state set to RTS, so no need for this excess RTS -> RTS transition. With
IB Core's ability to set the RNR Retry timer, we use this interface to
shave off another ib_modify_qp().

Fixes: ec16227e1414 ("RDS/IB: Infiniband transport")
Link: https://lore.kernel.org/r/1617216194-12890-3-git-send-email-haakon.bugge@oracle.com
Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
net/rds/ib_cm.c
net/rds/rdma_transport.c