]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/zcrx: prepare fallback for larger pages
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 2 Jul 2025 14:29:09 +0000 (15:29 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 Jul 2025 17:59:56 +0000 (11:59 -0600)
commite67645bb7f3f48e0dd794ca813ede75f61e1b31b
tree055d7098ec1b8e6d1efb6598f23b11a1e983d3a8
parent1b4dc1ff0a8887c2fbb83a48e87284375ab4b02a
io_uring/zcrx: prepare fallback for larger pages

io_zcrx_copy_chunk() processes one page at a time, which won't be
sufficient when the net_iov size grows. Introduce a structure keeping
the target niov page and other parameters, it's more convenient and can
be reused later. And add a helper function that can efficient copy
buffers of an arbitrary length. For 64bit archs the loop inside should
be compiled out.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/e84bc705a4e1edeb9aefff470d96558d8232388f.1751466461.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/zcrx.c