aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/tcp.h
diff options
context:
space:
mode:
authorArjun Roy <arjunroy@google.com>2021-01-20 16:41:48 -0800
committerJakub Kicinski <kuba@kernel.org>2021-01-22 20:05:56 -0800
commit7eeba1706eba6def15f6cb2fc7b3c3b9a2651edc (patch)
tree144fe447206ea0b48670e815cf02ab2354338a52 /include/uapi/linux/tcp.h
parenttcp: Remove CMSG magic numbers for tcp_recvmsg(). (diff)
downloadlinux-dev-7eeba1706eba6def15f6cb2fc7b3c3b9a2651edc.tar.xz
linux-dev-7eeba1706eba6def15f6cb2fc7b3c3b9a2651edc.zip
tcp: Add receive timestamp support for receive zerocopy.
tcp_recvmsg() uses the CMSG mechanism to receive control information like packet receive timestamps. This patch adds CMSG fields to struct tcp_zerocopy_receive, and provides receive timestamps if available to the user. Signed-off-by: Arjun Roy <arjunroy@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/uapi/linux/tcp.h')
-rw-r--r--include/uapi/linux/tcp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/tcp.h b/include/uapi/linux/tcp.h
index 16dfa40bdac3..42fc5a640df4 100644
--- a/include/uapi/linux/tcp.h
+++ b/include/uapi/linux/tcp.h
@@ -354,5 +354,9 @@ struct tcp_zerocopy_receive {
__u64 copybuf_address; /* in: copybuf address (small reads) */
__s32 copybuf_len; /* in/out: copybuf bytes avail/used or error */
__u32 flags; /* in: flags */
+ __u64 msg_control; /* ancillary data */
+ __u64 msg_controllen;
+ __u32 msg_flags;
+ /* __u32 hole; Next we must add >1 u32 otherwise length checks fail. */
};
#endif /* _UAPI_LINUX_TCP_H */