diff options
| author | Jason Gunthorpe <[email protected]> | 2020-09-04 19:41:53 -0300 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-09-11 10:24:54 -0300 |
| commit | cf9ce3c8ab803bb76504e53b0b23b542ab96ed02 (patch) | |
| tree | 7feb396ead05564e5481db9877a0db8095c16b81 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 84e71b4d9bd8bb5dfde6a298875d32e8ddf7f06e (diff) | |
RDMA/hns: Use ib_umem_num_dma_blocks() instead of opencoding
mtr_umem_page_count() does the same thing, replace it with the core code.
Also, ib_umem_find_best_pgsz() should always be called to check that the
umem meets the page_size requirement. If there is a limited set of
page_sizes that work it the pgsz_bitmap should be set to that set. 0 is a
failure and the umem cannot be used.
Lightly tidy the control flow to implement this flow properly.
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Weihang Li <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions