diff options
Diffstat (limited to 'net/ipv4/tcp_timer.c')
| -rw-r--r-- | net/ipv4/tcp_timer.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index b2ab411c6d37..14672543cf0b 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c @@ -201,11 +201,10 @@ static int tcp_write_timeout(struct sock *sk)  		if (retransmits_timed_out(sk, net->ipv4.sysctl_tcp_retries1, 0, 0)) {  			/* Some middle-boxes may black-hole Fast Open _after_  			 * the handshake. Therefore we conservatively disable -			 * Fast Open on this path on recurring timeouts with -			 * few or zero bytes acked after Fast Open. +			 * Fast Open on this path on recurring timeouts after +			 * successful Fast Open.  			 */ -			if (tp->syn_data_acked && -			    tp->bytes_acked <= tp->rx_opt.mss_clamp) { +			if (tp->syn_data_acked) {  				tcp_fastopen_cache_set(sk, 0, NULL, true, 0);  				if (icsk->icsk_retransmits == net->ipv4.sysctl_tcp_retries1)  					NET_INC_STATS(sock_net(sk),  |