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.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -41,6 +41,7 @@ struct net; · 40 unmodified lines | ||
| 41 | 41 | #define SOCK_NOSPACE 2 |
| 42 | 42 | #define SOCK_PASSCRED 3 |
| 43 | 43 | #define SOCK_PASSSEC 4 |
| 44 | +#define SOCK_SUPPORT_ZC 5 | |
| 44 | 45 | |
| 45 | 46 | #ifndef ARCH_HAS_SOCKET_TYPES |
| 46 | 47 | /** |