-
由 Gal Pressman 提交于
Use the ib_umem_find_best_pgsz() and rdma_for_each_block() API when registering an MR instead of coding it in the driver. ib_umem_find_best_pgsz() is used to find the best suitable page size which replaces the existing efa_cont_pages() implementation. rdma_for_each_block() is used to iterate the umem in aligned contiguous memory blocks. Reviewed-by: NFiras JahJah <firasj@amazon.com> Reviewed-by: NYossi Leybovich <sleybo@amazon.com> Reviewed-by: NShiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: NGal Pressman <galpress@amazon.com> Signed-off-by: NDoug Ledford <dledford@redhat.com>
40ddb3f0