RDMA/i40iw: Set queue pair state when being queried
authorLiu, Changcheng <changcheng.liu@intel.com>
Fri, 28 Jun 2019 06:16:13 +0000 (14:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:27:04 +0000 (07:27 +0200)
commitca730bf0cd67233041a6749f86ff2a431ca85524
tree9c8a41a0b47653eeafe8747f3b19fd7de2bdfd8f
parent52373ab6a6c75ba885f11d3f3ce6dfdf897a7264
RDMA/i40iw: Set queue pair state when being queried

[ Upstream commit 2e67e775845373905d2c2aecb9062c2c4352a535 ]

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

Fixes: d37498417947 ("i40iw: add files for iwarp interface")
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/i40iw/i40iw_verbs.c