]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/erdma: Return QP state in erdma_query_qp
authorCheng Xu <chengyou@linux.alibaba.com>
Mon, 2 Sep 2024 11:29:20 +0000 (19:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:33:10 +0000 (16:33 +0200)
commite6e69719c6f244de9cc81d9c756b3e87134b8ee9
tree9ac6e98abc2e5df1efc22cae7c3c6206793138ec
parent6dcc5b49d6607a741a14122bf3105f3ac50d259e
RDMA/erdma: Return QP state in erdma_query_qp

[ Upstream commit e77127ff6416b17e0b3e630ac46ee5c9a6570f57 ]

Fix qp_state and cur_qp_state to return correct values in
struct ib_qp_attr.

Fixes: 155055771704 ("RDMA/erdma: Add verbs implementation")
Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Link: https://patch.msgid.link/20240902112920.58749-4-chengyou@linux.alibaba.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/erdma/erdma_verbs.c