Lines Matching refs:tcp_cwnd

672 	win_size = (tcp->tcp_swnd > tcp->tcp_cwnd) ? tcp->tcp_cwnd :
2176 * 1) Various stuffs, tcp_mss, tcp_cwnd, ... need to be adjusted when the
2216 tcp->tcp_cwnd = MIN(tcp_slow_start_initial * mss,
2543 * All holes are filled. Manipulate tcp_cwnd to send more
2544 * if we can. Note that after the SACK recovery, tcp_cwnd is
2550 tcp->tcp_cwnd = tcp->tcp_snxt - tcp->tcp_suna;
2551 assert(tcp->tcp_cwnd > 0);
2555 tcp->tcp_cwnd = tcp->tcp_snxt - tcp->tcp_suna +
2881 * Set tcp_cwnd back to 1 MSS, per
2886 tcp->tcp_cwnd = tcp->tcp_mss;
3402 tcp->tcp_cwnd = mss;
3431 * set, reduce tcp_cwnd and tcp_ssthresh. But this should only be
3438 npkt = (MIN(tcp->tcp_cwnd, tcp->tcp_swnd) >> 1) / mss;
3440 tcp->tcp_cwnd = npkt * mss;
3449 * back, we will increase tcp_cwnd by 1 MSS.
3488 * increase tcp_cwnd so that new
3498 * Note how tcp_cwnd is incremented.
3509 tcp->tcp_cwnd += mss <<
3531 npkt = (MIN(tcp->tcp_cwnd,
3536 tcp->tcp_cwnd = (npkt +
3627 cwnd = tcp->tcp_cwnd + mss;
3630 tcp->tcp_cwnd = cwnd;
3720 if (tcp->tcp_cwnd > tcp->tcp_cwnd_ssthresh) {
3721 tcp->tcp_cwnd = tcp->tcp_cwnd_ssthresh;
3748 * need to scale back tcp_cwnd to the
3754 tcp->tcp_cwnd = tcp->tcp_cwnd_ssthresh +
3756 tcp->tcp_cwnd_cnt = tcp->tcp_cwnd;
3814 * congestion experience bit is not set, increase the tcp_cwnd as
3818 cwnd = tcp->tcp_cwnd;
3824 * tcp_cwnd. With partial increase, tcp_wput_data()
3828 * By initializing tcp_cwnd_cnt to new tcp_cwnd and
3829 * decrementing it by 1 MSS for every ACKs, tcp_cwnd is
3839 tcp->tcp_cwnd = MIN(cwnd + add, tcp->tcp_cwnd_max);
4179 * Adjust tcp_cwnd back to normal value after sending
4183 tcp->tcp_cwnd -= mss << (tcp->tcp_dupack_cnt - 1);
4232 win = MIN(tcp->tcp_cwnd, tcp->tcp_swnd);
4371 tcp->tcp_cwnd),
4379 tcp->tcp_cwnd = tcp->tcp_mss;
4403 if (tcp->tcp_cwnd == 0) {
4405 * Set tcp_cwnd to 1 MSS so that a
4411 tcp->tcp_cwnd = tcp->tcp_mss;
4726 tcp->tcp_cwnd = MIN(tcp_slow_start_after_idle * mss,
4748 if (tcp->tcp_cwnd == 0) {
4750 * Note that tcp_cwnd is 0 before 3-way handshake is
4759 if (usable_r > tcp->tcp_cwnd)
4760 usable_r = tcp->tcp_cwnd;