]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Add receive timestamp support for receive zerocopy.
authorArjun Roy <arjunroy@google.com>
Thu, 21 Jan 2021 00:41:48 +0000 (16:41 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 23 Jan 2021 04:05:56 +0000 (20:05 -0800)
commitccbf2d1b716ccb12716c21e2c1dda59ebde0047b
tree144fe447206ea0b48670e815cf02ab2354338a52
parentc5643a1bd69b020c591ec8b4653e1e056aac743f
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>
include/uapi/linux/tcp.h
net/ipv4/tcp.c