commit | 4a35339958f16d42a4ca06a8da9d4b5ab39ee8ea | [log] [tgz] |
---|---|---|
author | Shiraz Saleem <shiraz.saleem@intel.com> | Mon May 06 08:53:32 2019 -0500 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Mon May 06 13:08:11 2019 -0300 |
tree | 5ac8683e8ff5329f7c5868cf44c0f6cbfa47f24e | |
parent | 4c4b1996b5db688e2dcb8242b0a3bf7b1e845e42 [diff] |
RDMA/umem: Add API to find best driver supported page size in an MR This helper iterates through the SG list to find the best page size to use from a bitmap of HW supported page sizes. Drivers that support multiple page sizes, but not mixed sizes in an MR can use this API. Suggested-by: Jason Gunthorpe <jgg@ziepe.ca> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>