io_uring/zcrx: grab a net device
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 15 Feb 2025 00:09:38 +0000 (16:09 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Feb 2025 12:41:09 +0000 (05:41 -0700)
commit035af94b39fd13751abf5f0a2948c9eddede55d0
treedc2859985d4c4ff6c630513e8648c70650b5e099
parentcf96310c5f9a0d542db99c887742811425ba2ec0
io_uring/zcrx: grab a net device

Zerocopy receive needs a net device to bind to its rx queue and dma map
buffers. As a preparation to following patches, resolve a net device
from the if_idx parameter with no functional changes otherwise.

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-4-dw@davidwei.uk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/zcrx.c
io_uring/zcrx.h