Skip to content

tcp: add optional usec resolution to TCP TS

Eric Dumazet netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 4 repliesApplied 13/13

Patches in v1 All 13 applied

#Subject and filesSizeRepliesApplied
1/13chtls: fix tp->rcv_tstamp initializationdrivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c+1 -10 repliesApplied
2/13tcp: fix cookie_init_timestamp() overflowsinclude/net/tcp.h net/ipv4/syncookies.c+8 -140 repliesApplied
3/13tcp: add tcp_time_stamp_ms() helperinclude/net/tcp.h net/ipv4/tcp_input.c net/ipv4/tcp_timer.c+7 -20 repliesApplied
4/13tcp: introduce tcp_clock_ms()include/net/tcp.h net/ipv4/tcp.c net/ipv4/tcp_minisocks.c +2 more+12 -90 repliesApplied
5/13tcp: replace tcp_time_stamp_raw()include/net/tcp.h net/ipv4/tcp.c net/ipv4/tcp_ipv4.c +1 more+25 -120 repliesApplied
6/13tcp: rename tcp_skb_timestamp()include/net/tcp.h net/ipv4/tcp_input.c net/ipv4/tcp_output.c +1 more+16 -120 repliesApplied
7/13tcp: move tcp_ns_to_ts() to net/ipv4/syncookies.cinclude/net/tcp.h net/ipv4/syncookies.c+9 -70 repliesApplied
8/13tcp: rename tcp_time_stamp() to tcp_time_stamp_ts()include/net/tcp.h net/ipv4/tcp_input.c net/ipv4/tcp_lp.c +2 more+14 -150 repliesApplied
9/13tcp: add tcp_rtt_tsopt_us()net/ipv4/tcp_input.c+23 -200 repliesApplied
10/13tcp: add RTAX_FEATURE_TCP_USEC_TSinclude/linux/tcp.h include/uapi/linux/rtnetlink.h+16 -70 repliesApplied
11/13tcp: introduce TCP_PAWS_WRAPinclude/net/tcp.h+7 -20 repliesApplied
12/13tcp: add support for usec resolution in TCP TS valuesinclude/linux/tcp.h include/net/inet_timewait_sock.h include/net/tcp.h +8 more+82 -330 repliesApplied
13/13tcp: add TCPI_OPT_USEC_TSinclude/uapi/linux/tcp.h net/ipv4/tcp.c+3 -00 repliesApplied

Reviews trailers per patch

None of the 13 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchYuchung ChengSoheil Hassas YeganehKevin YangNeal Cardwell
SeriesA-b A-b A-b A-b
1/13
2/13
3/13
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH net-next 00/13] tcp: add optional usec resolution to TCP TS

As discussed in various public places in 2016, Google adopted usec resolution in RFC 7323 TS values, at Van Jacobson suggestion.

Goals were :

1) better observability of delays in networking stacks/fabrics.

2) better disambiguation of events based on TSval/ecr values.

3) building block for congestion control modules needing usec resolution.

Back then we implemented a schem based on private SYN options to safely negotiate the feature.

For upstream submission, we chose to use a much simpler route attribute because this feature is probably going to be used in private networks.

ip route add 10/8 ... features tcp_usec_ts

References:

https://www.ietf.org/proceedings/97/slides/slides-97-tcpm-tcp-options-for-low-latency-00.pdf
https://datatracker.ietf.org/doc/draft-wang-tcpm-low-latency-opt/

First two patches are fixing old minor bugs and might be taken by stable teams (thanks to appropriate Fixes: tags)

Eric Dumazet (13):
chtls: fix tp->rcv_tstamp initialization
tcp: fix cookie_init_timestamp() overflows
tcp: add tcp_time_stamp_ms() helper
tcp: introduce tcp_clock_ms()
tcp: replace tcp_time_stamp_raw()
tcp: rename tcp_skb_timestamp()
tcp: move tcp_ns_to_ts() to net/ipv4/syncookies.c
tcp: rename tcp_time_stamp() to tcp_time_stamp_ts()
tcp: add tcp_rtt_tsopt_us()
tcp: add RTAX_FEATURE_TCP_USEC_TS
tcp: introduce TCP_PAWS_WRAP
tcp: add support for usec resolution in TCP TS values
tcp: add TCPI_OPT_USEC_TS

 .../chelsio/inline_crypto/chtls/chtls_cm.c    |  2 +-
 include/linux/tcp.h                           |  9 ++-
 include/net/inet_timewait_sock.h              |  3 +-
 include/net/tcp.h                             | 59 ++++++++++++++-----
 include/uapi/linux/rtnetlink.h                | 18 +++---
 include/uapi/linux/tcp.h                      |  1 +
 net/ipv4/syncookies.c                         | 32 ++++++----
 net/ipv4/tcp.c                                | 26 +++++---
 net/ipv4/tcp_input.c                          | 52 ++++++++--------
 net/ipv4/tcp_ipv4.c                           |  5 +-
 net/ipv4/tcp_lp.c                             |  2 +-
 net/ipv4/tcp_minisocks.c                      | 19 ++++--
 net/ipv4/tcp_output.c                         | 14 +++--
 net/ipv4/tcp_timer.c                          | 44 +++++++++-----
 net/ipv6/tcp_ipv6.c                           |  5 +-
 net/netfilter/nf_synproxy_core.c              |  2 +-
 .../selftests/bpf/progs/xdp_synproxy_kern.c   |  4 +-
 17 files changed, 193 insertions(+), 104 deletions(-)
Signature · 1 line
2.42.0.655.g421f12c284-goog