Re: [PATCH RFC 1/2] RDMA/rxe: don't allow registering !PAGE_SIZE mr
From: Bart Van Assche
Date: Sat Oct 28 2023 - 19:07:51 EST
On 10/27/23 19:48, Zhu Yanjun wrote:
In this case, ULP with folio will not work well with current RXE after
this commit is applied.
Why not? RDMA ULPs like the SRP initiator driver use ib_map_mr_sg(). The
latter function calls rxe_map_mr_sg() if the RXE driver is used.
rxe_map_mr_sg() calls ib_sg_to_pages(). ib_sg_to_pages() translates
SG-entries that are larger than a virtual memory page into multiple
entries with size mr->page_size.
Thanks,
Bart.