]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: lower congestion window on Fast Open SYNACK timeout
authorYuchung Cheng <ycheng@google.com>
Mon, 29 Apr 2019 22:46:17 +0000 (15:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 15:47:54 +0000 (11:47 -0400)
commitf3ff5c695f0ccc129eac78d147e5d6590fbc4d5b
tree6351df311bfcfeb02f6a45ef549d62aa0062263a
parent4305c84f6489525803edb14ae27a06e50860dc9c
tcp: lower congestion window on Fast Open SYNACK timeout

TCP sender would use congestion window of 1 packet on the second SYN
and SYNACK timeout except passive TCP Fast Open. This makes passive
TFO too aggressive and unfair during congestion at handshake. This
patch fixes this issue so TCP (fast open or not, passive or active)
always conforms to the RFC6298.

Note that tcp_enter_loss() is called only once during recurring
timeouts.  This is because during handshake, high_seq and snd_una
are the same so tcp_enter_loss() would incorrect set the undo state
variables multiple times.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_timer.c