aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 9944c1d9a218..dc1e0be30b77 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -936,7 +936,7 @@ static void tcp_init_metrics(struct sock *sk)
936 tcp_set_rto(sk); 936 tcp_set_rto(sk);
937reset: 937reset:
938 if (tp->srtt == 0) { 938 if (tp->srtt == 0) {
939 /* RFC2988bis: We've failed to get a valid RTT sample from 939 /* RFC6298: 5.7 We've failed to get a valid RTT sample from
940 * 3WHS. This is most likely due to retransmission, 940 * 3WHS. This is most likely due to retransmission,
941 * including spurious one. Reset the RTO back to 3secs 941 * including spurious one. Reset the RTO back to 3secs
942 * from the more aggressive 1sec to avoid more spurious 942 * from the more aggressive 1sec to avoid more spurious
@@ -946,7 +946,7 @@ reset:
946 inet_csk(sk)->icsk_rto = TCP_TIMEOUT_FALLBACK; 946 inet_csk(sk)->icsk_rto = TCP_TIMEOUT_FALLBACK;
947 } 947 }
948 /* Cut cwnd down to 1 per RFC5681 if SYN or SYN-ACK has been 948 /* Cut cwnd down to 1 per RFC5681 if SYN or SYN-ACK has been
949 * retransmitted. In light of RFC2988bis' more aggressive 1sec 949 * retransmitted. In light of RFC6298 more aggressive 1sec
950 * initRTO, we only reset cwnd when more than 1 SYN/SYN-ACK 950 * initRTO, we only reset cwnd when more than 1 SYN/SYN-ACK
951 * retransmission has occurred. 951 * retransmission has occurred.
952 */ 952 */