]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/zcrx: netmem array as refiling format
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 23 Mar 2026 12:44:00 +0000 (12:44 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Apr 2026 16:21:12 +0000 (10:21 -0600)
commitc0989138c0515fbffbff2d9b9093853a874440cc
tree54d344f8e3a9ed07fc8abfd58ff4ae241b8a883d
parent48f253d65d39a45d2eed395bf6b8ac3bb8b1e992
io_uring/zcrx: netmem array as refiling format

Instead of peeking into page pool allocation cache directly or via
net_mp_netmem_place_in_cache(), pass a netmem array around. It's a
better intermediate format, e.g. you can have it on stack and reuse the
refilling code and decouples it from page pools a bit more.

It still points into the page pool directly, there will be no additional
copies. As the next step, we can change the callback prototype to take
the netmem array from page pool.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://patch.msgid.link/9d8549adb7ef6672daf2d8a52858ce5926279a82.1774261953.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/zcrx.c