Re: [PATCH] net/ipv4: fix the conditions of entering TCP_CA_Disorder state

2013-08-05 Thread Eric Dumazet
On Mon, 2013-08-05 at 20:45 -0400, Dong Fang wrote: > if have some packets loss by network, the kernel can't reach here, we can see > the tcp_time_to_recover() function: > > static bool tcp_time_to_recover(struct sock *sk, int flag) > { > struct tcp_sock *tp = tcp_sk(sk); > __u32

[PATCH] net/ipv4: fix the conditions of entering TCP_CA_Disorder state

2013-08-05 Thread Dong Fang
if have some packets loss by network, the kernel can't reach here, we can see the tcp_time_to_recover() function: static bool tcp_time_to_recover(struct sock *sk, int flag) { struct tcp_sock *tp = tcp_sk(sk); __u32 packets_out; /* Trick#1: The loss is proven. */

[PATCH] net/ipv4: fix the conditions of entering TCP_CA_Disorder state

2013-08-05 Thread Dong Fang
if have some packets loss by network, the kernel can't reach here, we can see the tcp_time_to_recover() function: static bool tcp_time_to_recover(struct sock *sk, int flag) { struct tcp_sock *tp = tcp_sk(sk); __u32 packets_out; /* Trick#1: The loss is proven. */

Re: [PATCH] net/ipv4: fix the conditions of entering TCP_CA_Disorder state

2013-08-05 Thread Eric Dumazet
On Mon, 2013-08-05 at 20:45 -0400, Dong Fang wrote: if have some packets loss by network, the kernel can't reach here, we can see the tcp_time_to_recover() function: static bool tcp_time_to_recover(struct sock *sk, int flag) { struct tcp_sock *tp = tcp_sk(sk); __u32