]> git.baikalelectronics.ru Git - kernel.git/commit
net: flag sockets supporting msghdr originated zerocopy
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 21 Oct 2022 10:16:39 +0000 (11:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 22 Oct 2022 14:42:58 +0000 (08:42 -0600)
commitcd55d475823c582fac07d9cf7be710d4bfeedf8a
tree4a2f29d5750b51820a53e95fd0995dc7cd342463
parent9d1083668cb98df1d951e04106f637492a88e09c
net: flag sockets supporting msghdr originated zerocopy

We need an efficient way in io_uring to check whether a socket supports
zerocopy with msghdr provided ubuf_info. Add a new flag into the struct
socket flags fields.

Cc: <stable@vger.kernel.org> # 6.0
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/3dafafab822b1c66308bb58a0ac738b1e3f53f74.1666346426.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/net.h
net/ipv4/tcp.c
net/ipv4/udp.c