]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Optimize WQE buffer size calculating process
authorXi Wang <wangxi11@huawei.com>
Tue, 28 Apr 2020 11:03:41 +0000 (19:03 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 May 2020 20:26:43 +0000 (17:26 -0300)
commit9e2649e716c319dc88557ac72b57a58828e17736
treeb8538c7c3a097df123e7634940dd9f2bc1303ee7
parent5f80773bdf3dd82b89b3d676a96508b0b45f4b1b
RDMA/hns: Optimize WQE buffer size calculating process

Optimize the QP's WQE buffer parameters calculating process to make the
codes more readable mainly by merging calculation of extended sge space of
kernel and userspace. In addition, add some inline functions to simply
codes about multi-hop addressing.

Link: https://lore.kernel.org/r/1588071823-40200-4-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_qp.c