>From 7fc1d2b6866ddcefd5896a9ba5741cf4c7203308 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sun, 7 Mar 2021 21:39:24 +0000 Subject: [PATCH 4/7] netinet/tcp.h: add tcp zerocopy related changes from linux v5.11 see linux commit 18fb76ed53865c1b5d5f0157b1b825704590beb5 net-zerocopy: Copy straggler unaligned data for TCP Rx. zerocopy. linux commit 94ab9eb9b234ddf23af04a4bc7e8db68e67b8778 net-zerocopy: Defer vm zap unless actually needed. --- include/netinet/tcp.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h index b7b997f5..30f20239 100644 --- a/include/netinet/tcp.h +++ b/include/netinet/tcp.h @@ -281,12 +281,17 @@ struct tcp_repair_window { uint32_t rcv_wup; }; +#define TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT 0x1 + struct tcp_zerocopy_receive { uint64_t address; uint32_t length; uint32_t recv_skip_hint; uint32_t inq; int32_t err; + uint64_t copybuf_address; + int32_t copybuf_len; + uint32_t flags; }; #endif -- 2.29.2