Subject: Re: [PATCH] tcp: fixing TLP's FIN recovery

From: Sergei Shtylyov <[email-masked]>
Date: Sat, 07 Jun 2014 17:56:06 +0400

Hello.

On 07-06-2014 15:10, Per Hurtig wrote:

> Fix to a problem observed when losing a FIN segment that does not
> contain data.  In such situations, TLP is unable to recover from
> *any* tail loss and instead adds at least PTO ms to the
> retransmission process, i.e., RTO = RTO + PTO.

     You should provide your signoff.

[...]

> diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
> index d463c35..6573765 100644
> --- a/net/ipv4/tcp_output.c
> +++ b/net/ipv4/tcp_output.c
> @@ -2130,8 +2130,10 @@ void tcp_send_loss_probe(struct sock *sk)
>   	if (WARN_ON(!skb || !tcp_skb_pcount(skb)))
>   		goto rearm_timer;
>
> -	/* Probe with zero data doesn't trigger fast recovery. */
> -	if (skb->len > 0)
> +	/* Probe with zero data doesn't trigger fast recovery, if not

    s/not/no/?
    Or rather "if FIN flag is not set"?

> +	 * FIN flag is set.
> +	 */
> +	if ((skb->len > 0) || (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN))
>   		err = __tcp_retransmit_skb(sk, skb);

WBR, Sergei