diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2020-12-08 08:52:17 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2020-12-08 08:52:17 +0300 |
commit | c8bb4520543823a9b3da3861304273dc7232e2c7 (patch) | |
tree | 26670815d56dfc89fbe55e77c8e987324b70f95f /net/ipv4/tcp.c | |
parent | f45f89a778e8a61d9c79405e8c716058b6ba12f2 (diff) | |
parent | f9b0498d29404f230894490d622e57e481c7d45a (diff) | |
download | linux-c8bb4520543823a9b3da3861304273dc7232e2c7.tar.xz |
Merge branch 'cpufreq/scmi' into cpufreq/arm/linux-next
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index bae4284bf542..b2bc3d7fe9e8 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -485,6 +485,8 @@ static inline bool tcp_stream_is_readable(const struct tcp_sock *tp, return true; if (tcp_rmem_pressure(sk)) return true; + if (tcp_receive_window(tp) <= inet_csk(sk)->icsk_ack.rcv_mss) + return true; } if (sk->sk_prot->stream_memory_read) return sk->sk_prot->stream_memory_read(sk); |