On Wed, Apr 23, 2025 at 11:13:06AM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@xxxxxxxxxx> > > 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. > > Tested-by: Jens Axboe <axboe@xxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx> > --- > drivers/vfio/pci/mlx5/cmd.c | 32 ++++++++++----------- > drivers/vfio/pci/mlx5/cmd.h | 10 +++---- > drivers/vfio/pci/mlx5/main.c | 56 +++++++++++++++++++++++------------- > 3 files changed, 57 insertions(+), 41 deletions(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason