]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit515ae862ef2186157c1664688daebe1ca14fe3c0
tree027b8877446b4c7af02cc319d231d32a754161ff
parente83c77388f29c6c34abac8f8aa250fefcc71160a
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: be0bfd7201cf ("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