io_uring/net: use io_sr_msg for sendzc
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 8 Sep 2022 12:20:34 +0000 (13:20 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 16:30:43 +0000 (10:30 -0600)
commitac9e5784bbe72f4f603d1af84760ec09bc0b5ccd
tree6fbe0e11d65d808fbbfa250d81b97eb5ca9752d4
parent0b048557db761d287777360a100e1d010760d209
io_uring/net: use io_sr_msg for sendzc

Reuse struct io_sr_msg for zerocopy sends, which is handy. There is
only one zerocopy specific field, namely .notif, and we have enough
space for it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/408c5b1b2d8869e1a12da5f5a78ed72cac112149.1662639236.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c