Lines Matching refs:cwnd
118 * This is the first part of cwnd validation mechanism. */
124 u32 cwnd = tp->snd_cwnd;
129 restart_cwnd = min(restart_cwnd, cwnd);
131 while ((delta -= inet_csk(sk)->icsk_rto) > 0 && cwnd > restart_cwnd)
132 cwnd >>= 1;
133 tp->snd_cwnd = max(cwnd, restart_cwnd);
952 static unsigned int tcp_window_allows(struct tcp_sock *tp, struct sk_buff *skb, unsigned int mss_now, unsigned int cwnd)
957 cwnd_len = mss_now * cwnd;
966 u32 in_flight, cwnd;
974 cwnd = tp->snd_cwnd;
975 if (in_flight < cwnd)
976 return (cwnd - in_flight);
1176 /* From in_flight test above, we know that cwnd > in_flight. */
1215 * Returns 0 if we should wait to probe (no cwnd available),
1231 * have enough cwnd, and
1265 /* Do we need to wait to drain cwnd? */
1331 /* Decrement cwnd here because we are sending
1736 * cwnd/ssthresh really reduced now.