diff options
| author | Paolo Abeni <pabeni@redhat.com> | 2026-11-19 14:48:03 +0100 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-11-19 14:48:04 +0100 |
| commit | a1671b708d2c063d036f6e4c997e63539c2c2f3e (patch) | |
| tree | 9dca4b1c842573a9b4029dde71b7e5a48714ca9a /tools/perf/scripts/python | |
| parent | abccf171fa8e97954e74934bde811d76a5410cbd (diff) | |
| parent | 314b35c8173cb5726ae4c3dd401d982e16de9482 (diff) | |
Merge branch 'tcp-avoid-integer-wraps-in-the-rtt-estimator-and-the-rto'
Chris Mason says:
====================
tcp: avoid integer wraps in the RTT estimator and the RTO
This is v2 of the RTT clamps, with Eric's review folded in.
Patch 1: __tcp_set_rto() never returns 0, so that the backoff recovers
from any state of the RTT estimator.
Patch 2: tcp_rtt_estimator() clamps each sample to 120 s, so that
srtt_us, mdev_us, rttvar_us and the sum in __tcp_set_rto() can't wrap.
Patch 3: tcp_rtt_tsopt_us() rejects a TSecr sample above 120 s.
Patch 4: new, from Eric's review. tcp_rcv_rtt_update() clamps its
samples too, which covers tcp_rcv_rtt_measure().
Patch 5: new. tcp_rto_min() bounds the locked rto_min of a route.
Eric, I have a question on patch 5. You pointed at a locked rto_min of 0 for
patch 1. We can also get an RTO of 0 out of tcp_init_metrics(), which doesn't
go through __tcp_set_rto(), so I bounded the metric in tcp_rto_min(). For a
locked cwnd of 0 you wanted ip_metrics_convert() to reject it instead.
I didn't do that here because claude points out that "rto_min lock 0" is
accepted today and mostly works, but just let me know how you want
this to look.
v1: https://lore.kernel.org/all/20261118005048.53393-1-mason@kernel.org/
====================
Link: https://patch.msgid.link/20261118155144.18393-1-mason@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
