History

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.

Pavel Begunkov committed 4 years ago

Commit e993ffe1 parent 996d3ef3 files · +3 −0Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/net.h+1−0
@@ -41,6 +41,7 @@ struct net; · 40 unmodified lines
4141 #define SOCK_NOSPACE 2
4242 #define SOCK_PASSCRED 3
4343 #define SOCK_PASSSEC 4
44+#define SOCK_SUPPORT_ZC 5
4445
4546 #ifndef ARCH_HAS_SOCKET_TYPES
4647 /**