Subject: Re: [PATCH 1/2] [TCP]: Add two new spurious RTO responses to FRTO

From: Jarek Poplawski <[email-masked]>
Date: Wed, 28 Feb 2007 13:13:02 +0100

On 27-02-2007 16:50, Ilpo Järvinen wrote:
> New sysctl tcp_frto_response is added to select amongst these
...
> Signed-off-by: Ilpo Järvinen <[email-masked]>
> @@ -762,15 +763,17 @@ __u32 tcp_init_cwnd(struct tcp_sock *tp,
>  }
>  
>  /* Set slow start threshold and cwnd not falling to slow start */
> -void tcp_enter_cwr(struct sock *sk)
> +void tcp_enter_cwr(struct sock *sk, const int set_ssthresh)
>  {
>  	struct tcp_sock *tp = tcp_sk(sk);
> +	const struct inet_connection_sock *icsk = inet_csk(sk);
>  
>  	tp->prior_ssthresh = 0;
>  	tp->bytes_acked = 0;
>  	if (inet_csk(sk)->icsk_ca_state < TCP_CA_CWR) {

-	if (inet_csk(sk)->icsk_ca_state < TCP_CA_CWR) {
+	if (icsk->icsk_ca_state < TCP_CA_CWR) {

Probably something for the next "BTW".

Regards,
Jarek P.

>  		tp->undo_marker = 0;
> -		tp->snd_ssthresh = inet_csk(sk)->icsk_ca_ops->ssthresh(sk);
> +		if (set_ssthresh)
> +			tp->snd_ssthresh = icsk->icsk_ca_ops->ssthresh(sk);
...