io_uring/net: switch io_send() and io_send_zc() to using io_async_msghdr
authorJens Axboe <axboe@kernel.dk>
Tue, 5 Mar 2024 16:34:21 +0000 (09:34 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Apr 2024 14:10:25 +0000 (08:10 -0600)
commit54cdcca05abde32acc3233950ddc79d8be25515f
tree88e804a46e02b37bef31f845f9a0564601d911a1
parent0ae9b9a14d54bd0aa68c1e8bda9dd8e6346f1d87
io_uring/net: switch io_send() and io_send_zc() to using io_async_msghdr

No functional changes in this patch, just in preparation for carrying
more state then what is being done now, if necessary. While unifying
some of this code, add a generic send setup prep handler that they can
both use.

This gets rid of some manual msghdr and sockaddr on the stack, and makes
it look a bit more like the sendmsg/recvmsg variants. Going forward, more
can get unified on top.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c
io_uring/opdef.c