Commit 41727549 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

tcp: Do not underestimate rwnd_limited

If available rwnd is too small, tcp_tso_should_defer()
can decide it is worth waiting before splitting a TSO packet.

This really means we are rwnd limited.

Fixes: 5615f886

 ("tcp: instrument how long TCP is limited by receive window")
Signed-off-by: default avatarEric Dumazet <>
Acked-by: default avatarSoheil Hassas Yeganeh <>
Reviewed-by: default avatarYuchung Cheng <>
Signed-off-by: default avatarDavid S. Miller <>
parent e37d05a5
......@@ -2356,8 +2356,11 @@ static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,
} else {
if (!push_one &&
tcp_tso_should_defer(sk, skb, &is_cwnd_limited,
max_segs)) {
if (!is_cwnd_limited)
is_rwnd_limited = true;
limit = mss_now;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment