OSDN Git Service

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)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Jul 2019 17:45:56 +0000 (14:45 -0300)
commit2e67e775845373905d2c2aecb9062c2c4352a535
treea4b84b561882da629d4cc0a32823dc5bb8fda743
parentcda8cf56d8e29c70dc8a3d989846c66ed1638e74
RDMA/i40iw: Set queue pair state when being queried

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>
drivers/infiniband/hw/i40iw/i40iw_verbs.c