diff options
| author | Jason Gunthorpe <[email protected]> | 2020-09-04 19:41:52 -0300 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-09-11 10:24:54 -0300 |
| commit | 84e71b4d9bd8bb5dfde6a298875d32e8ddf7f06e (patch) | |
| tree | 715da5295ba1403484fe3b35a56887f3616b78ef /tools/perf/scripts/python | |
| parent | 901bca71cd5bb940c7a57042c4c1cc15bc847ffe (diff) | |
RDMA/bnxt: Do not use ib_umem_page_count() or ib_umem_num_pages()
ib_umem_page_count() returns the number of 4k entries required for a DMA
map, but bnxt_re already computes a variable page size. The correct API to
determine the size of the page table array is ib_umem_num_dma_blocks().
Fix the overallocation of the page array in fill_umem_pbl_tbl() when
working with larger page sizes by using the right function. Lightly
re-organize this function to make it clearer.
Replace the other calls to ib_umem_num_pages().
Fixes: d85582517e91 ("RDMA/bnxt_re: Use core helpers to get aligned DMA address")
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Selvin Xavier <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions