]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: simplify window probe aborting on USER_TIMEOUT
authorYuchung Cheng <ycheng@google.com>
Wed, 16 Jan 2019 23:05:33 +0000 (15:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2019 23:12:26 +0000 (15:12 -0800)
commit8ef68003594b30b4a9a6cd474c198aec462f3888
treebfa0865947efad2293f0d210dbe7451e342eb2da
parent86a4cb05752c2a2385da252fc5c49a3c2f737e3f
tcp: simplify window probe aborting on USER_TIMEOUT

Previously we use the next unsent skb's timestamp to determine
when to abort a socket stalling on window probes. This no longer
works as skb timestamp reflects the last instead of the first
transmission.

Instead we can estimate how long the socket has been stalling
with the probe count and the exponential backoff behavior.

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