io_uring/net: add IORING_SEND_IGNORE_INLINE support to send/sendmsg
authorJens Axboe <axboe@kernel.dk>
Mon, 14 Oct 2024 20:11:17 +0000 (14:11 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Oct 2024 13:41:20 +0000 (07:41 -0600)
commitee384ea5a6f2e81a047ff940eca0b59137351f29
treec4856dab0522e5ed6d1e4e87733af6a0915ccbd6
parent8edad1ee317bda855678951bcbb6aede3eee3c05
io_uring/net: add IORING_SEND_IGNORE_INLINE support to send/sendmsg

If IORING_SEND_IGNORE_INLINE is set for a send/sendmsg request, then a
successful inline completion of such a request will be ignored for a
submit_and_wait() type of submissions. In other words, if an application
submits a send for socketA with a recv for socketB, it can now do:

io_uring_submit_and_wait(ring, 1);

and have the inline send completion be ignored from the number of items
to wait for.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h
io_uring/net.c