RDMA/cxgb4: Set queue pair state when being queried
authorKamal Heib <kamalheib1@gmail.com>
Mon, 20 Dec 2021 15:25:30 +0000 (17:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:54:09 +0000 (10:54 +0100)
commit5a6864e2e6ab7ce101d1ff105fe8f87f591746bd
tree0ad399c47ea5300754eaa7b5ab54d7df1e16ecd6
parent80524c8cdf2959b424f4e8fd735598f5e112b375
RDMA/cxgb4: Set queue pair state when being queried

[ Upstream commit e375b9c92985e409c4bb95dd43d34915ea7f5e28 ]

The API for ib_query_qp requires the driver to set cur_qp_state on return,
add the missing set.

Fixes: 67bbc05512d8 ("RDMA/cxgb4: Add query_qp support")
Link: https://lore.kernel.org/r/20211220152530.60399-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/cxgb4/qp.c