diff options
author | Jason Gunthorpe <[email protected]> | 2019-10-09 13:09:25 -0300 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2019-10-28 16:41:13 -0300 |
commit | 3d5f3c54e7bc82a279c80c18087462c0ce00ba44 (patch) | |
tree | 0d1f452e632c0ee82a19d3de46ca654e04c5ecc3 /tools/perf/scripts/python/compaction-times.py | |
parent | 74bddb3682f60df16ba24be335c94de348ba1b07 (diff) |
RDMA/mlx5: Rework implicit_mr_get_data
This function is intended to loop across each MTT chunk in the implicit
parent that intersects the range [io_virt, io_virt+bnct). But it is has a
confusing construction, so:
- Consistently use imr and odp_imr to refer to the implicit parent
to avoid confusion with the normal mr and odp of the child
- Directly compute the inclusive start/end indexes by shifting. This is
clearer to understand the intent and avoids any errors from unaligned
values of addr
- Iterate directly over the range of MTT indexes, do not make a loop
out of goto
- Follow 'success oriented flow', with goto error unwind
- Directly calculate the range of idx's that need update_xlt
- Ensure that any leaf MR added to the interval tree always results in an
update to the XLT
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Artemy Kovalyov <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions