]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/efa: Use API to get contiguous memory blocks aligned to device supported page...
authorGal Pressman <galpress@amazon.com>
Thu, 13 Jun 2019 09:10:12 +0000 (12:10 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 21 Jun 2019 15:52:44 +0000 (11:52 -0400)
commit53d973ae0d067eb1f52fa1611f0bfe8cac0c2ff5
tree68ebf6cef37739f74bb056a6e8724e20924f98cb
parent7950b0fdbf87ccac3661571f906566d23c8c7d84
RDMA/efa: Use API to get contiguous memory blocks aligned to device supported page size

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: Firas JahJah <firasj@amazon.com>
Reviewed-by: Yossi Leybovich <sleybo@amazon.com>
Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/efa/efa_verbs.c