]> 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)
commite993ffe3da4bcddea0536b03be1031bf35cd8d85
tree4a2f29d5750b51820a53e95fd0995dc7cd342463
parent996d3efeb091c503afd3ee6b5e20eabf446fd955
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