Skip to content

zcrx huge pages support Vol 1

Pavel Begunkov io-uring 4 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 9 repliesApplied
  2. v36 patches 0 repliesSuperseded
  3. v26 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v18 patches3 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/6io_uring/zcrx: always pass page to io_zcrx_copy_chunkio_uring/zcrx.c+10 -111 reply
2/6io_uring/zcrx: return error from io_zcrx_map_area_*io_uring/zcrx.c+14 -133 replies
3/6io_uring/zcrx: introduce io_populate_area_dmaio_uring/zcrx.c+31 -251 reply
4/6io_uring/zcrx: allocate sgtable for umem areasio_uring/zcrx.c io_uring/zcrx.h+28 -511 reply
5/6io_uring/zcrx: assert area type in io_zcrx_iov_pageio_uring/zcrx.c+2 -00 replies
6/6io_uring/zcrx: prepare fallback for larger pagesio_uring/zcrx.c+56 -270 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchDavid Wei
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/6] zcrx huge pages support Vol 1

Use sgtable as the common format b/w dmabuf and user pages, deduplicate dma address propagation handling, and use it to omptimise dma mappings. It also prepares it for larger size for NIC pages.

v4: further restrict kmap fallback length, v3 isn't be generic
enough to cover future uses.

v3: truncate kmap'ed length by both pages

v2: Don't coalesce into folios, just use sg_alloc_table_from_pages()
for now. Coalescing will return back later.

Improve some fallback copy code. Patch 1, and Patch 6 adding a helper to work with larger pages, which also allows to get rid of skb_frag_foreach_page.

Return copy fallback helpers back to pages instead of folios, the latter wouldn't be correct in all cases.

Pavel Begunkov (6):
io_uring/zcrx: always pass page to io_zcrx_copy_chunk io_uring/zcrx: return error from io_zcrx_map_area_* io_uring/zcrx: introduce io_populate_area_dma io_uring/zcrx: allocate sgtable for umem areas io_uring/zcrx: assert area type in io_zcrx_iov_page io_uring/zcrx: prepare fallback for larger pages

 io_uring/zcrx.c | 241 +++++++++++++++++++++++++-----------------------
 io_uring/zcrx.h |   1 +
 2 files changed, 128 insertions(+), 114 deletions(-)
Signature · 1 line
2.49.0