RDMA/hns: Optimize eqe buffer allocation flow
authorXi Wang <wangxi11@huawei.com>
Sun, 26 Jan 2020 14:58:35 +0000 (22:58 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Feb 2020 18:12:43 +0000 (14:12 -0400)
commitd7e2d3432ae7795e5b77a77039e904ed4a769f39
tree9bd17116b3e7a6988a82455e38ae68f14940d733
parentb14c95bee83537aff423cece4ae6078759bc6f34
RDMA/hns: Optimize eqe buffer allocation flow

The eqe has a private multi-hop addressing implementation, but there is
already a set of interfaces in the hns driver that can achieve this.

So, simplify the eqe buffer allocation process by using the mtr interface
and remove large amount of repeated logic.

Link: https://lore.kernel.org/r/20200126145835.11368-1-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_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c