RDMA/hns: Encapsulate and simplify qp state transition
authorLijun Ou <oulijun@huawei.com>
Sat, 8 Dec 2018 10:40:08 +0000 (18:40 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Dec 2018 19:04:06 +0000 (12:04 -0700)
commit233673e422de70d6ba32e7b41dd75e47f036d03b
tree12dce5c31e1868adbd379be61e32b0d0b6ed6473
parent9f5071010347b2134e1139dca2396a0cea8130dc
RDMA/hns: Encapsulate and simplify qp state transition

This patch move the codes of qp state transition into the new function as
well as simplify the logic for other qp states transition.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c