diff options
| author | Jason Gunthorpe <[email protected]> | 2020-09-04 19:41:48 -0300 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-09-11 10:24:53 -0300 |
| commit | 1f9b6827c85f9d9786f31a1434a16c917aae23b2 (patch) | |
| tree | 2c565f0d1e09a4fd114f0fa34367a35be38285f2 /tools/perf/scripts/python/bin | |
| parent | a665aca89a411115e35ea937c2d3fb2ee4f5a701 (diff) | |
RDMA/efa: Use ib_umem_num_dma_pages()
If ib_umem_find_best_pgsz() returns > PAGE_SIZE then the equation here is
not correct. 'start' should be 'virt'. Change it to use the core code for
page_num and the canonical calculation of page_shift.
Fixes: 40ddb3f02083 ("RDMA/efa: Use API to get contiguous memory blocks aligned to device supported page size")
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Gal Pressman <[email protected]>
Acked-by: Gal Pressman <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions