[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240809083148.1989912-5-liujian56@huawei.com>
Date: Fri, 9 Aug 2024 16:31:48 +0800
From: Liu Jian <liujian56@...wei.com>
To: <linux-rdma@...r.kernel.org>, <linux-s390@...r.kernel.org>,
<netdev@...r.kernel.org>
CC: <jgg@...pe.ca>, <leon@...nel.org>, <zyjzyj2000@...il.com>,
<wenjia@...ux.ibm.com>, <jaka@...ux.ibm.com>, <alibuda@...ux.alibaba.com>,
<tonylu@...ux.alibaba.com>, <guwen@...ux.alibaba.com>, <davem@...emloft.net>,
<edumazet@...gle.com>, <kuba@...nel.org>, <pabeni@...hat.com>,
<liujian56@...wei.com>
Subject: [PATCH net-next 4/4] RDMA/rxe: Set queue pair cur_qp_state when being queried
Same with commit e375b9c92985 ("RDMA/cxgb4: Set queue pair state when
being queried"). The API for ib_query_qp requires the driver to set
cur_qp_state on return, add the missing set.
Fixes: 8700e3e7c485 ("Soft RoCE driver")
Signed-off-by: Liu Jian <liujian56@...wei.com>
---
drivers/infiniband/sw/rxe/rxe_verbs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c b/drivers/infiniband/sw/rxe/rxe_verbs.c
index 5c18f7e342f2..699b4b315336 100644
--- a/drivers/infiniband/sw/rxe/rxe_verbs.c
+++ b/drivers/infiniband/sw/rxe/rxe_verbs.c
@@ -634,6 +634,8 @@ static int rxe_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
rxe_qp_to_init(qp, init);
rxe_qp_to_attr(qp, attr, mask);
+ attr->cur_qp_state = qp->attr.qp_state;
+
return 0;
}
--
2.34.1
Powered by blists - more mailing lists