OpenCloudOS-Kernel/drivers/infiniband
Weihang Li 05201e01be RDMA/hns: Refactor process of setting extended sge
The variable 'cnt' is used to represent the max number of sge an SQ WQE
can use at first, then it means how many extended sge an SQ has. In
addition, this function has no need to return a value. So refactor and
encapsulate the parts of getting number of extended sge a WQE can use to
make it easier to understand.

Link: https://lore.kernel.org/r/1606558959-48510-4-git-send-email-liweihang@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>
2020-12-01 20:58:43 -04:00
..
core RDMA/restrack: Support all QP types 2020-11-27 11:38:46 -04:00
hw RDMA/hns: Refactor process of setting extended sge 2020-12-01 20:58:43 -04:00
sw RDMA/siw,rxe: Make emulated devices virtual in the device tree 2020-11-23 16:14:31 -04:00
ulp RDMA/ipoib: Distribute cq completion vector better 2020-11-20 16:18:59 -04:00
Kconfig RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs 2020-11-12 13:27:41 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00