linux-bl808/drivers/infiniband/hw/hns
Jason Gunthorpe 6a217437f9 Merge branch 'sg_nents' into rdma.git for-next
From Maor Gottlieb
====================

Fix the use of nents and orig_nents in the sg table append helpers. The
nents should be used by the DMA layer to store the number of DMA mapped
sges, the orig_nents is the number of CPU sges.

Since the sg append logic doesn't always create a SGL with exactly
orig_nents entries store a total_nents as well to allow the table to be
properly free'd and reorganize the freeing logic to share across all the
use cases.

====================

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>

* 'sg_nents':
  RDMA: Use the sg_table directly and remove the opencoded version from umem
  lib/scatterlist: Fix wrong update of orig_nents
  lib/scatterlist: Provide a dedicated function to support table append
2021-08-30 09:49:59 -03:00
..
hns_roce_ah.c
hns_roce_alloc.c RDMA/hns: Delete unused hns bitmap interface 2021-08-24 09:15:17 -03:00
hns_roce_cmd.c RDMA/hns: Fix the double unlock problem of poll_sem 2021-08-03 13:42:44 -03:00
hns_roce_cmd.h
hns_roce_common.h RDMA/hns: Add hr_reg_write_bool() 2021-06-21 15:03:41 -03:00
hns_roce_cq.c
hns_roce_db.c RDMA: Use the sg_table directly and remove the opencoded version from umem 2021-08-24 19:52:40 -03:00
hns_roce_device.h RDMA/hns: Bugfix for incorrect association between dip_idx and dgid 2021-08-25 13:55:30 -03:00
hns_roce_hem.c RDMA: Fix kernel-doc warnings about wrong comment 2021-06-21 20:32:50 -03:00
hns_roce_hem.h
hns_roce_hw_v1.c RDMA/hns: Don't skip IB creation flow for regular RC QP 2021-08-03 13:44:26 -03:00
hns_roce_hw_v1.h
hns_roce_hw_v2.c RDMA/hns: Delete unnecessary blank lines. 2021-08-26 12:12:21 -03:00
hns_roce_hw_v2.h RDMA/hns: Delete unnecessary blank lines. 2021-08-26 12:12:21 -03:00
hns_roce_hw_v2_dfx.c
hns_roce_main.c Merge branch 'sg_nents' into rdma.git for-next 2021-08-30 09:49:59 -03:00
hns_roce_mr.c RDMA/hns: Fix return in hns_roce_rereg_user_mr() 2021-08-19 11:12:04 -03:00
hns_roce_pd.c RDMA/hns: Use IDA interface to manage uar index 2021-08-24 09:15:16 -03:00
hns_roce_qp.c RDMA/hns: Delete unnecessary blank lines. 2021-08-26 12:12:21 -03:00
hns_roce_restrack.c
hns_roce_srq.c RDMA/hns: Use IDA interface to manage srq index 2021-08-24 09:15:16 -03:00
Kconfig
Makefile