aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_verbs.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2020-10-16 08:46:01 -0300
committerJason Gunthorpe <jgg@nvidia.com>2020-10-16 12:41:33 -0300
commit9a40401cfa1356b0d169be8470ed7b2edc33b98f (patch)
treed5a06663aaea0288eacc183ac2d41ef785191987 /include/rdma/ib_verbs.h
parentMerge branch 'dynamic_sg' into rdma.git for-next (diff)
downloadlinux-dev-9a40401cfa1356b0d169be8470ed7b2edc33b98f.tar.xz
linux-dev-9a40401cfa1356b0d169be8470ed7b2edc33b98f.zip
lib/scatterlist: Do not limit max_segment to PAGE_ALIGNED values
The main intention of the max_segment argument to __sg_alloc_table_from_pages() is to match the DMA layer segment size set by dma_set_max_seg_size(). Restricting the input to be page aligned makes it impossible to just connect the DMA layer to this API. The only reason for a page alignment here is because the algorithm will overshoot the max_segment if it is not a multiple of PAGE_SIZE. Simply fix the alignment before starting and don't expose this implementation detail to the callers. A future patch will completely remove SCATTERLIST_MAX_SEGMENT. Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include/rdma/ib_verbs.h')
0 files changed, 0 insertions, 0 deletions