OSDN Git Service

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)
commit9721e709fa68ef9b860c322b474cfbd1f8285b0f
treebfa0865947efad2293f0d210dbe7451e342eb2da
parent01a523b071618abbc634d1958229fe3bd2dfa5fa
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