]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/zcrx: set pp memory provider for an rx queue
authorDavid Wei <dw@davidwei.uk>
Sat, 15 Feb 2025 00:09:42 +0000 (16:09 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Feb 2025 12:41:09 +0000 (05:41 -0700)
commite0793de24a9f610bd8ce106f7033b3966e7fca0e
tree0615f8b3bcc43fb9268b23ca5ff9e6cd8f7a332f
parent11ed914bbf948c4a37248f2876973ac18014056d
io_uring/zcrx: set pp memory provider for an rx queue

Set the page pool memory provider for the rx queue configured for zero
copy to io_uring. Then the rx queue is reset using
netdev_rx_queue_restart() and netdev core + page pool will take care of
filling the rx queue from the io_uring zero copy memory provider.

For now, there is only one ifq so its destruction happens implicitly
during io_uring cleanup.

Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: David Wei <dw@davidwei.uk>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20250215000947.789731-8-dw@davidwei.uk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/zcrx.c