]> www.infradead.org Git - users/hch/block.git/commit
vfio/mlx5: Explicitly use number of pages instead of allocated length
authorLeon Romanovsky <leonro@nvidia.com>
Sun, 21 Apr 2024 12:43:05 +0000 (15:43 +0300)
committerLeon Romanovsky <leon@kernel.org>
Thu, 3 Oct 2024 16:05:53 +0000 (19:05 +0300)
commit1f8b30263db5231fae67fff0f7e947d511e0dc4f
tree5516cc006b09a90ce498319f3557edef13bd71aa
parent488bee668b46205b8e7bc1b2136796e60d019d56
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. It opens
us a venue to combine receive and send paths together with code
readability improvement.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/vfio/pci/mlx5/cmd.c
drivers/vfio/pci/mlx5/cmd.h
drivers/vfio/pci/mlx5/main.c