RDMA/mlx4: Use ib_umem_find_best_pgsz() to calculate MTT size

Convert mlx4 to use ib_umem_find_best_pgsz() instead of open-coded
variant to calculate MTT size.

Link: https://patch.msgid.link/c39ec6f5d4664c439a72f2961728ebb5895a9f07.1733233299.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
This commit is contained in:
Leon Romanovsky 2024-12-03 15:42:25 +02:00 • committed by Leon Romanovsky
commit d31ba16c43
4 changed files with 35 additions and 168 deletions