RDMA/bnxt_re: Set queue pair state when being queried
authorKamal Heib <kamalheib1@gmail.com>
Wed, 21 Oct 2020 11:49:52 +0000 (14:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:52:57 +0000 (11:52 +0100)
commit4d281791bee58736e010c3397b402dd2e1e0465d
treed1eadf5ed4dc1eb6293b62a158a456697b5f1834
parent942e8f31dff6a378e66d93982f0e69a459f8a5f2
RDMA/bnxt_re: Set queue pair state when being queried

[ Upstream commit 53839b51a7671eeb3fb44d479d541cf3a0f2dd45 ]

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

Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
Link: https://lore.kernel.org/r/20201021114952.38876-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/bnxt_re/ib_verbs.c