linux_dsm_epyc7002/drivers/infiniband/ulp
Israel Rukshin 57b26497fa IB/iser: Pass the correct number of entries for dma mapped SGL
ib_dma_map_sg() augments the SGL into a 'dma mapped SGL'. This process may
change the number of entries and the lengths of each entry.

Code that touches dma_address is iterating over the 'dma mapped SGL' and
must use dma_nents which returned from ib_dma_map_sg().

ib_sg_to_pages() and ib_map_mr_sg() are using dma_address so they must use
dma_nents.

Fixes: 3940588500 ("IB/iser: Port to new fast registration API")
Fixes: bfe066e256 ("IB/iser: Reuse ib_sg_to_pages")
Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-01-18 14:12:24 -07:00
..
ipoib IB/ipoib: drop useless LIST_HEAD 2019-01-02 15:42:43 -07:00
iser IB/iser: Pass the correct number of entries for dma mapped SGL 2019-01-18 14:12:24 -07:00
isert RDMA/ulp: Use dev_name instead of ibdev->name 2018-09-26 13:51:48 -06:00
opa_vnic RDMA: Mark if destroy address handle is in a sleepable context 2018-12-19 16:28:03 -07:00
srp IB/srp: Use struct_size() in kzalloc() 2019-01-08 15:46:59 -07:00
srpt 4.21 merge window pull request 2018-12-28 14:57:10 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00