RDMA/hns: Refactor extend link table allocation
authorXi Wang <wangxi11@huawei.com>
Thu, 20 May 2021 03:35:51 +0000 (11:35 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 20 May 2021 15:39:05 +0000 (12:39 -0300)
commitb6989da85a27568088c91d3c8184050cf073a4fc
tree58670c209d5c77d34a5573542efc283a62d0cb4c
parent800de3f55770529ae1e59e175b6bae73bedfa355
RDMA/hns: Refactor extend link table allocation

The timeout link table works in HIP08 ES version and the hns driver only
support the CS version for HIP08, so delete the related code. Then
simplify the buffer allocation for link table to make the code more
readable.

Link: https://lore.kernel.org/r/1621481751-27375-1-git-send-email-liweihang@huawei.com
Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h