diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-10-21 11:16:39 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-10-22 08:42:58 -0600 |
commit | e993ffe3da4bcddea0536b03be1031bf35cd8d85 (patch) | |
tree | 4a2f29d5750b51820a53e95fd0995dc7cd342463 /include/linux/net.h | |
parent | 996d3efeb091c503afd3ee6b5e20eabf446fd955 (diff) | |
download | linux-stable-e993ffe3da4bcddea0536b03be1031bf35cd8d85.tar.gz linux-stable-e993ffe3da4bcddea0536b03be1031bf35cd8d85.tar.bz2 linux-stable-e993ffe3da4bcddea0536b03be1031bf35cd8d85.zip |
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>
Diffstat (limited to 'include/linux/net.h')
-rw-r--r-- | include/linux/net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/net.h b/include/linux/net.h index 711c3593c3b8..18d942bbdf6e 100644 --- a/include/linux/net.h +++ b/include/linux/net.h @@ -41,6 +41,7 @@ struct net; #define SOCK_NOSPACE 2 #define SOCK_PASSCRED 3 #define SOCK_PASSSEC 4 +#define SOCK_SUPPORT_ZC 5 #ifndef ARCH_HAS_SOCKET_TYPES /** |