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
41#define SOCK_NOSPACE 241#define SOCK_NOSPACE 2
42#define SOCK_PASSCRED 342#define SOCK_PASSCRED 3
43#define SOCK_PASSSEC 443#define SOCK_PASSSEC 4
44#define SOCK_SUPPORT_ZC 5
44 45
45#ifndef ARCH_HAS_SOCKET_TYPES46#ifndef ARCH_HAS_SOCKET_TYPES
46/**47/**