Re: [PATCH net 2/2] tcp_metrics: use ssthresh value from dst if there is no metrics
From: Paolo Abeni
Date: Tue Jun 17 2025 - 06:48:58 EST
On 6/13/25 12:20 PM, Petr Tesarik wrote:
> @@ -537,6 +537,9 @@ void tcp_init_metrics(struct sock *sk)
>
> inet_csk(sk)->icsk_rto = TCP_TIMEOUT_FALLBACK;
> }
> +
> + if (tp->snd_ssthresh > tp->snd_cwnd_clamp)
> + tp->snd_ssthresh = tp->snd_cwnd_clamp;
I don't think we can do this unconditionally, as other parts of the TCP
stack check explicitly for TCP_INFINITE_SSTHRESH.
/P