linux/drivers/infiniband/hw/hns
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
..
hns_roce_ah.c RDMA/hns: Add UD support for HIP09 2020-11-26 15:24:48 -04:00
hns_roce_alloc.c RDMA/hns: Refactor the hns_roce_buf allocation flow 2020-11-23 19:36:54 -04:00
hns_roce_cmd.c RDMA/hns: Optimize cmd init and mode selection for hip08 2019-09-16 10:52:20 -03:00
hns_roce_cmd.h RDMA/hns: Rename the functions used inside creating cq 2019-11-25 10:31:48 -04:00
hns_roce_common.h RDMA/hns: Add support for CQ stash 2020-11-27 12:53:59 -04:00
hns_roce_cq.c RDMA: Check flags during create_cq 2020-10-26 19:27:59 -03:00
hns_roce_db.c IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
hns_roce_device.h RDMA/hns: Add support for CQ stash 2020-11-27 12:53:59 -04:00
hns_roce_hem.c RDMA/hns: Add support for configuring GMV table 2020-10-28 13:40:42 -03:00
hns_roce_hem.h RDMA/hns: Add support for configuring GMV table 2020-10-28 13:40:42 -03:00
hns_roce_hw_v1.c RDMA: Check attr_mask during modify_qp 2020-10-26 19:27:58 -03:00
hns_roce_hw_v1.h RDMA/hns: Add support for QPC in size of 512 Bytes 2020-09-24 15:35:11 -03:00
hns_roce_hw_v2_dfx.c RDMA/hns: Dump detailed driver-specific CQ 2019-04-08 13:05:25 -03:00
hns_roce_hw_v2.c RDMA/hns: Fix 0-length sge calculation error 2020-12-01 20:58:42 -04:00
hns_roce_hw_v2.h Linux 5.10-rc6 2020-12-01 20:40:50 -04:00
hns_roce_main.c RDMA/hns: Add UD support for HIP09 2020-11-26 15:24:48 -04:00
hns_roce_mr.c RDMA/hns: Refactor the hns_roce_buf allocation flow 2020-11-23 19:36:54 -04:00
hns_roce_pd.c RDMA: Restore ability to fail on PD deallocate 2020-09-09 13:57:22 -03:00
hns_roce_qp.c RDMA/hns: Refactor process of setting extended sge 2020-12-01 20:58:43 -04:00
hns_roce_restrack.c RDMA: Add a dedicated CQ resource tracker function 2020-06-23 11:46:27 -03:00
hns_roce_srq.c RDMA: Check srq_type during create_srq 2020-10-26 19:27:58 -03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile RDMA/hns: Fix build error again 2019-10-29 16:16:54 -03:00