RDMA/hns: Optimize mhop put flow for multi-hop addressing
authorXi Wang <wangxi11@huawei.com>
Tue, 17 Mar 2020 03:55:24 +0000 (11:55 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 24 Mar 2020 23:18:56 +0000 (20:18 -0300)
commit38dcb35048fdc9b11530b23c092b250b2e8135a1
tree76aa643c51f39bf958ca92feeaabaf641a4bf68e
parent2f49de21f3e96d869d00659581394f106fa66371
RDMA/hns: Optimize mhop put flow for multi-hop addressing

Optimizes hns_roce_table_mhop_get() by encapsulating code about clearing
hem into clear_mhop_hem(), which will make the code flow clearer.

Link: https://lore.kernel.org/r/1584417324-2255-3-git-send-email-liweihang@huawei.com
Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hem.c