]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: better handle TCP_TX_DELAY on established flows
authorEric Dumazet <edumazet@google.com>
Mon, 13 Oct 2025 14:59:26 +0000 (14:59 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Oct 2025 15:56:30 +0000 (08:56 -0700)
commit1c51450f1afff1e7419797720df3fbd9ccbf610c
tree0d4870a48bf8659f4cc741f42b47624fc49e7b5e
parent6378e25ee1ca2ed687eee78eff7bd588d52a4e14
tcp: better handle TCP_TX_DELAY on established flows

Some applications uses TCP_TX_DELAY socket option after TCP flow
is established.

Some metrics need to be updated, otherwise TCP might take time to
adapt to the new (emulated) RTT.

This patch adjusts tp->srtt_us, tp->rtt_min, icsk_rto
and sk->sk_pacing_rate.

This is best effort, and for instance icsk_rto is reset
without taking backoff into account.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20251013145926.833198-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_input.c