]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/rxe: Set queue pair cur_qp_state when being queried
authorLiu Jian <liujian56@huawei.com>
Thu, 31 Oct 2024 09:20:19 +0000 (17:20 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 4 Nov 2024 11:53:06 +0000 (06:53 -0500)
commit775e6d3c8fda41083b16c26d05163fd69f029a62
tree050355a42105af44dc588486fa5c682b975db4d5
parent1103579d6e32a97c71ef43e045ea559bd27d4c15
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@huawei.com>
Link: https://patch.msgid.link/20241031092019.2138467-1-liujian56@huawei.com
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/sw/rxe/rxe_qp.c