RDMA/hns: Optimize SRQ buffer size calculating process
authorXi Wang <wangxi11@huawei.com>
Tue, 28 Apr 2020 11:03:43 +0000 (19:03 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 May 2020 20:26:44 +0000 (17:26 -0300)
commit67954a6e379b4678536ef14a1d49ea78fcdc4a1f
tree7ecb2f837f8ed09864dcbc939a06359e2c63e506
parentffb1308b88b6023205249f11332ebff83610899a
RDMA/hns: Optimize SRQ buffer size calculating process

Optimize the SRQ's WQE buffer parameters calculating process to make the
codes more readable by using new functions about multi-hop addressing to
calculating capabilities of SRQ.

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