Skip to content

Commit 4327bd2

Browse files
larrchjgunthorpe
authored andcommitted
RDMA/hns: Fix error during modify qp RTS2RTS
One qp state migrations legal configuration was deleted mistakenly. Fixes: 357f342 ("RDMA/hns: Simplify the state judgment code of qp") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lang Cheng <[email protected]> Signed-off-by: Weihang Li <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent a5531e9 commit 4327bd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/infiniband/hw/hns/hns_roce_hw_v2.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4262,7 +4262,9 @@ static bool check_qp_state(enum ib_qp_state cur_state,
42624262
[IB_QPS_RTR] = { [IB_QPS_RESET] = true,
42634263
[IB_QPS_RTS] = true,
42644264
[IB_QPS_ERR] = true },
4265-
[IB_QPS_RTS] = { [IB_QPS_RESET] = true, [IB_QPS_ERR] = true },
4265+
[IB_QPS_RTS] = { [IB_QPS_RESET] = true,
4266+
[IB_QPS_RTS] = true,
4267+
[IB_QPS_ERR] = true },
42664268
[IB_QPS_SQD] = {},
42674269
[IB_QPS_SQE] = {},
42684270
[IB_QPS_ERR] = { [IB_QPS_RESET] = true, [IB_QPS_ERR] = true }

0 commit comments

Comments
 (0)