mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
RDMA/i40iw: Set queue pair state when being queried
[ Upstream commit2e67e77584] The API for ib_query_qp requires the driver to set qp_state and cur_qp_state on return, add the missing sets. Fixes:d374984179("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
63fd714759
commit
261be5ecc3
@@ -821,6 +821,8 @@ static int i40iw_query_qp(struct ib_qp *ibqp,
|
||||
struct i40iw_qp *iwqp = to_iwqp(ibqp);
|
||||
struct i40iw_sc_qp *qp = &iwqp->sc_qp;
|
||||
|
||||
attr->qp_state = iwqp->ibqp_state;
|
||||
attr->cur_qp_state = attr->qp_state;
|
||||
attr->qp_access_flags = 0;
|
||||
attr->cap.max_send_wr = qp->qp_uk.sq_size;
|
||||
attr->cap.max_recv_wr = qp->qp_uk.rq_size;
|
||||
|
||||
Reference in New Issue
Block a user