io_uring/zcrx: dmabuf backed zerocopy receive
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 May 2025 12:17:18 +0000 (13:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 May 2025 16:11:00 +0000 (10:11 -0600)
commita5c98e9424573649e59988199a3356a79c9e1fd9
treecf32023bb8e50a6834ff7b7799b2b2a5256e7c93
parent8a62804248fff77749048a0f5511649b2569bba9
io_uring/zcrx: dmabuf backed zerocopy receive

Add support for dmabuf backed zcrx areas. To use it, the user should
pass IORING_ZCRX_AREA_DMABUF in the struct io_uring_zcrx_area_reg flags
field and pass a dmabuf fd in the dmabuf_fd field.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20bb1890e60a82ec945ab36370d1fd54be414ab6.1746097431.git.asml.silence@gmail.com
Link: https://lore.kernel.org/io-uring/6e37db97303212bbd8955f9501cf99b579f8aece.1746547722.git.asml.silence@gmail.com
[axboe: fold in fixup]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h
io_uring/zcrx.c
io_uring/zcrx.h