]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/net: use io_sr_msg for sendzc
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 16 Oct 2022 20:33:26 +0000 (21:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Oct 2022 10:39:27 +0000 (12:39 +0200)
commitd54c1579d350dccf022d70e70d2db0b3d08f3fae
treee5903f4536957bccb4b349fe5db4492e83568bee
parenta5841a69eac46581a8cfb141292328031b24c686
io_uring/net: use io_sr_msg for sendzc

[ upstream commit ac9e5784bbe72f4f603d1af84760ec09bc0b5ccd ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/net.c