tcp: add accessors to read/set tp->snd_cwnd
[platform/kernel/linux-rpi.git] / net / ipv4 / tcp_rate.c
index 6ab1979..042e27f 100644 (file)
@@ -194,7 +194,7 @@ void tcp_rate_check_app_limited(struct sock *sk)
            /* Nothing in sending host's qdisc queues or NIC tx queue. */
            sk_wmem_alloc_get(sk) < SKB_TRUESIZE(1) &&
            /* We are not limited by CWND. */
-           tcp_packets_in_flight(tp) < tp->snd_cwnd &&
+           tcp_packets_in_flight(tp) < tcp_snd_cwnd(tp) &&
            /* All lost packets have been retransmitted. */
            tp->lost_out <= tp->retrans_out)
                tp->app_limited =