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>
Tue, 26 Mar 2024 17:07:36 +0000 (11:07 -0600)
commit1d503acbb08f376e892ab32ce5264b4823583e4f
treed7d9774cbb000b5a2f006472e15ce381824a10f6
parent86d8cf1d9064cd5957d5890e9e2aea0634275a77
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