RDMA/hns: Adjust the qp status value sequence of the hardware
authorLang Cheng <chenglang@huawei.com>
Fri, 20 Mar 2020 03:23:37 +0000 (11:23 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 26 Mar 2020 19:52:28 +0000 (16:52 -0300)
Interchange SQD and SQE to match the protocol.

Link: https://lore.kernel.org/r/1584674622-52773-6-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.h

index 2a117ff..83e94df 100644 (file)
@@ -460,8 +460,8 @@ enum hns_roce_v2_qp_state {
        HNS_ROCE_QP_ST_INIT,
        HNS_ROCE_QP_ST_RTR,
        HNS_ROCE_QP_ST_RTS,
-       HNS_ROCE_QP_ST_SQER,
        HNS_ROCE_QP_ST_SQD,
+       HNS_ROCE_QP_ST_SQER,
        HNS_ROCE_QP_ST_ERR,
        HNS_ROCE_QP_ST_SQ_DRAINING,
        HNS_ROCE_QP_NUM_ST