]> 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)
commit54d6638765b0ede9f3889af47d9d5412bef8f47d
treeb8538c7c3a097df123e7634940dd9f2bc1303ee7
parent2929c40f08a9654c4c8e35ad0a36d611deb61394
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