]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - include/rdma/ib_verbs.h
RDMA/umem: Add API to find best driver supported page size in an MR
authorShiraz Saleem <shiraz.saleem@intel.com>
Mon, 6 May 2019 13:53:32 +0000 (08:53 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 6 May 2019 16:08:11 +0000 (13:08 -0300)
commit4a35339958f16d42a4ca06a8da9d4b5ab39ee8ea
tree5ac8683e8ff5329f7c5868cf44c0f6cbfa47f24e
parent4c4b1996b5db688e2dcb8242b0a3bf7b1e845e42
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>
drivers/infiniband/core/umem.c
include/rdma/ib_umem.h
include/rdma/ib_verbs.h