diff options
| author | David S. Miller <davem@davemloft.net> | 2021-06-05 00:08:09 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-06-05 00:08:09 +0300 |
| commit | d15fd7359ab18a46c5fefc36be45b36205f1acfc (patch) | |
| tree | 3b036b03ebf2f591b3bf8ec5926ef498c780d157 /include/net/tcp.h | |
| parent | ebbf5fcb94a7f3499747b282420a1c5f7e8d1c6f (diff) | |
| parent | 5e6af0a729b669b1da6f9600867e2e4910505a6d (diff) | |
| download | linux-d15fd7359ab18a46c5fefc36be45b36205f1acfc.tar.xz | |
Merge branch 'mptcp-timestamps'
Mat Martineau says:
====================
mptcp: Add timestamp support
Enable the SO_TIMESTAMP and SO_TIMESTAMPING socket options for MPTCP
sockets and add receive path cmsg support for timestamps.
Patches 1, 2, and 5 expose existing sock and tcp helpers for timestamps
(no new EXPORT_SYMBOLS()s).
Patch 3 propagates timestamp options to subflows.
Patch 4 cleans up MPTCP handling of SOL_SOCKET options.
Patch 6 adds timestamp csmg data when receiving on sockets that have
been configured for timestamps.
Patch 7 adds self test coverage for timestamps.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
| -rw-r--r-- | include/net/tcp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index d05193cb0d99..e668f1bf780d 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -412,6 +412,10 @@ int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock, int flags, int *addr_len); int tcp_set_rcvlowat(struct sock *sk, int val); int tcp_set_window_clamp(struct sock *sk, int val); +void tcp_update_recv_tstamps(struct sk_buff *skb, + struct scm_timestamping_internal *tss); +void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk, + struct scm_timestamping_internal *tss); void tcp_data_ready(struct sock *sk); #ifdef CONFIG_MMU int tcp_mmap(struct file *file, struct socket *sock, |
