OSDN Git Service

tcp: Do not underestimate rwnd_limited
authorEric Dumazet <edumazet@google.com>
Wed, 5 Dec 2018 22:24:31 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 08:24:28 +0000 (09:24 +0100)
commit03b271cb9175b8fc9d6dfcfb3e87f23a7d6815dc
tree0e2db0032aaf7c8cc3f75cc833875e64049cf455
parent5148726f2c272055ffa8e528a9280733679e4a06
tcp: Do not underestimate rwnd_limited

[ Upstream commit 41727549de3e7281feb174d568c6e46823db8684 ]

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: 5615f88614a4 ("tcp: instrument how long TCP is limited by receive window")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Reviewed-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_output.c