From 3db3bd00259a4fd260c3ee3e463b4d804d775b8e Mon Sep 17 00:00:00 2001 From: Igor Ivanov Date: Mon, 15 Jun 2020 19:06:13 +0300 Subject: [PATCH] issue: 1792164 Support systems w/o zero copy Define constants that related zero copy Signed-off-by: Igor Ivanov --- src/vma/sock/sockinfo.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/vma/sock/sockinfo.h b/src/vma/sock/sockinfo.h index 2e47b72ea..f9fbe41c6 100644 --- a/src/vma/sock/sockinfo.h +++ b/src/vma/sock/sockinfo.h @@ -90,6 +90,22 @@ enum { #define SO_REUSEPORT 15 #endif +#ifndef SO_EE_ORIGIN_ZEROCOPY +#define SO_EE_ORIGIN_ZEROCOPY 5 +#endif + +#ifndef SO_ZEROCOPY +#define SO_ZEROCOPY 59 +#endif + +#ifndef SO_EE_CODE_ZEROCOPY_COPIED +#define SO_EE_CODE_ZEROCOPY_COPIED 1 +#endif + +#ifndef MSG_ZEROCOPY +#define MSG_ZEROCOPY 0x4000000 +#endif + struct cmsg_state { struct msghdr *mhdr;