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)
committerLeon Romanovsky <leon@kernel.org>
Mon, 9 Sep 2024 18:17:09 +0000 (21:17 +0300)
commite77127ff6416b17e0b3e630ac46ee5c9a6570f57
treedce1e60d2267f96353eaaa3c64c1472370e8e3c9
parentb80330f1051d4e89d234a191db99caad5fbd8cbc
RDMA/erdma: Return QP state in erdma_query_qp

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>
drivers/infiniband/hw/erdma/erdma_verbs.c