Re: [RFC PATCH net-next 1/2] tcp: RTO Restart (RTOR)

2015-12-08 Thread Per Hurtig
> On 08 Dec 2015, at 03:05, Yuchung Cheng wrote: > > On Mon, Dec 7, 2015 at 1:00 AM, Per Hurtig wrote: >> This patch implements the RTO restart modification (RTOR). When data is >> ACKed, and the RTO timer is restarted, the time elapsed since the last >>

Re: [RFC PATCH net-next 1/2] tcp: RTO Restart (RTOR)

2015-12-07 Thread Eric Dumazet
On Mon, 2015-12-07 at 10:00 +0100, Per Hurtig wrote: \ > > +static u32 tcp_unsent_pkts(const struct sock *sk) > +{ > + struct sk_buff *skb = tcp_send_head(sk); > + u32 pkts = 0; > + > + if (skb) > + tcp_for_write_queue_from(skb, sk) > + pkts +=

Re: [RFC PATCH net-next 1/2] tcp: RTO Restart (RTOR)

2015-12-07 Thread Marcelo Ricardo Leitner
On Mon, Dec 07, 2015 at 10:00:11AM +0100, Per Hurtig wrote: > This patch implements the RTO restart modification (RTOR). When data is > ACKed, and the RTO timer is restarted, the time elapsed since the last > outstanding segment was transmitted is subtracted from the calculated RTO > value. This

[RFC PATCH net-next 1/2] tcp: RTO Restart (RTOR)

2015-12-07 Thread Per Hurtig
This patch implements the RTO restart modification (RTOR). When data is ACKed, and the RTO timer is restarted, the time elapsed since the last outstanding segment was transmitted is subtracted from the calculated RTO value. This way, the RTO timer will expire after exactly RTO seconds, and not RTO

Re: [RFC PATCH net-next 1/2] tcp: RTO Restart (RTOR)

2015-12-07 Thread Ilpo Järvinen
On Mon, 7 Dec 2015, Per Hurtig wrote: > This patch implements the RTO restart modification (RTOR). When data is > ACKed, and the RTO timer is restarted, the time elapsed since the last > outstanding segment was transmitted is subtracted from the calculated RTO > value. This way, the RTO timer

Re: [RFC PATCH net-next 1/2] tcp: RTO Restart (RTOR)

2015-12-07 Thread Yuchung Cheng
On Mon, Dec 7, 2015 at 1:00 AM, Per Hurtig wrote: > This patch implements the RTO restart modification (RTOR). When data is > ACKed, and the RTO timer is restarted, the time elapsed since the last > outstanding segment was transmitted is subtracted from the calculated RTO >