]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/zcrx: dma-map area for the device
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 15 Feb 2025 00:09:40 +0000 (16:09 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Feb 2025 12:41:09 +0000 (05:41 -0700)
commitdb070446f5af8c7a384b89367a10cddbf5498717
tree59d6b852d0d3c94c11f278fcc1d313c9ce84b855
parent34a3e60821ab9f335a58d43a88cccdbefdebdec3
io_uring/zcrx: dma-map area for the device

Setup DMA mappings for the area into which we intend to receive data
later on. We know the device we want to attach to even before we get a
page pool and can pre-map in advance. All net_iov are synchronised for
device when allocated, see page_pool_mp_return_in_cache().

Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: David Wei <dw@davidwei.uk>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20250215000947.789731-6-dw@davidwei.uk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/zcrx.c
io_uring/zcrx.h