diff options
author | 2025-05-20 16:46:30 +0300 | |
---|---|---|
committer | 2025-05-20 08:32:07 -0600 | |
commit | 674ebb64cd5dc40827b8ac8c95bb72d328ed59ff (patch) | |
tree | aa0a2057b6744ef61e25a0eba147bb4eb62724e6 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | Merge branch 'dma-mapping-for-6.16-two-step-api' of git://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux into v6.16/vfio/next (diff) | |
download | linux-rng-674ebb64cd5dc40827b8ac8c95bb72d328ed59ff.tar.xz linux-rng-674ebb64cd5dc40827b8ac8c95bb72d328ed59ff.zip |
vfio/mlx5: Explicitly use number of pages instead of allocated length
allocated_length is a multiple of page size and number of pages,
so let's change the functions to accept number of pages. This improves
code readability, simplifies buffer handling, and enables combining DMA
send/receive operations, as will be introduced in the next patches.
Tested-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Acked-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/76f39993d2ca0311b3bcfe56038a669d03926815.1747747694.git.leon@kernel.org
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions