commit | 99441ab552f1e1713a562838215c080387a94267 | [log] [tgz] |
---|---|---|
author | Xi Wang <wangxi11@huawei.com> | Mon Jul 08 21:41:21 2019 +0800 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Thu Jul 25 12:23:10 2019 -0300 |
tree | 4d3b7112a4e310826bbfada8f281c6d4bd19b3fa | |
parent | 947441eadb909b031fc0793d049e1af0d5855a21 [diff] |
RDMA/hns: optimize the duplicated code for qpc setting flow Currently, more than 20 lines of duplicate code exist in function 'modify_qp_init_to_init' and function 'modify_qp_reset_to_init', which affects the readability of the code. Consolidate them. Link: https://lore.kernel.org/r/1562593285-8037-6-git-send-email-oulijun@huawei.com Signed-off-by: Xi Wang <wangxi11@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>