]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDMA/hns: Optimize hns_roce_mhop_alloc function.
authorchenglang <chenglang@huawei.com>
Mon, 8 Jul 2019 13:41:22 +0000 (21:41 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 25 Jul 2019 15:23:11 +0000 (12:23 -0300)
commit89b4b70b974c98139f57eeb06facab40473268d3
tree4f752374accf1150cd58b3af7d665046ef221b07
parent99441ab552f1e1713a562838215c080387a94267
RDMA/hns: Optimize hns_roce_mhop_alloc function.

Move some lines for allocating multi-hop addressing into independent
functions in order to improve readability.

Link: https://lore.kernel.org/r/1562593285-8037-7-git-send-email-oulijun@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_mr.c