]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/efa: Use the correct current and new states in modify QP
authorGal Pressman <galpress@amazon.com>
Tue, 1 Dec 2020 09:17:24 +0000 (11:17 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 2 Dec 2020 00:53:48 +0000 (20:53 -0400)
commit81bdcf9499fa6df2d7593dc753d26b56d8cb6c7f
treeefefaa136dd610cf0bd75f29f55163291c49c10e
parent4c8d56827d48019586ceb82e003500e7e33873f6
RDMA/efa: Use the correct current and new states in modify QP

The local variables cur_state and new_state hold the state that should be
used for the modify QP operation instead of the ones in the ib_qp_attr
struct.

Fixes: 1d3734ebd6cc ("RDMA/efa: Add EFA verbs implementation")
Link: https://lore.kernel.org/r/20201201091724.37016-1-galpress@amazon.com
Reviewed-by: Firas JahJah <firasj@amazon.com>
Reviewed-by: Yossi Leybovich <sleybo@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/efa/efa_verbs.c