commit | a3de9e83810ced41ad7dece44c03f2338e44129d | [log] [tgz] |
---|---|---|
author | Lang Cheng <chenglang@huawei.com> | Wed Apr 15 16:14:32 2020 +0800 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Fri Apr 24 10:19:10 2020 -0300 |
tree | 9b4a3a719df4ca53763f254bdd60fc4e8e7414a2 | |
parent | 375898e83d26d6da7414f129ed417ad7cef2728f [diff] |
RDMA/hns: Simplify the qp state convert code Use type map table to reduce the cyclomatic complexity. Link: https://lore.kernel.org/r/1586938475-37049-4-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>