diff options
author | Konstantin Taranov <[email protected]> | 2024-03-04 05:52:41 -0800 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2024-03-07 11:32:33 +0200 |
commit | 2d5c00815778ec4f4e0a84e405e3e157b7815db1 (patch) | |
tree | 0533a597a3dcca858401573693f940c13b88e95e /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | e02497fb654689049ba8b46f098f17d5f19e0b3c (diff) |
RDMA/mana_ib: Use virtual address in dma regions for MRs
Introduce mana_ib_create_dma_region() to create dma regions with iova
for MRs. It allows creating MRs with any page offset. Previously,
only page-aligned addresses worked.
For dma regions that must have a zero dma offset (e.g., for queues),
mana_ib_create_zero_offset_dma_region() is added.
To get the zero offset, ib_umem_find_best_pgoff() is used with zero
pgoff_bitmask.
Fixes: 0266a177631d ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter")
Signed-off-by: Konstantin Taranov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Zhu Yanjun <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions