Lines Matching refs:snd_cwnd
305 if (tp->snd_cwnd <= tp->snd_wnd)
311 if (tp->snd_cwnd > tp->snd_ssthresh) {
313 if (tp->t_bytes_acked >= tp->snd_cwnd) {
314 tp->t_bytes_acked -= tp->snd_cwnd;
382 if (tp->snd_cwnd == 1)
383 tp->snd_cwnd = maxseg; /* SYN(-ACK) lost */
385 tp->snd_cwnd = min(V_tcp_initcwnd_segments * maxseg,
388 tp->snd_cwnd = min(4 * maxseg, max(2 * maxseg, 4380));
392 tp->snd_cwnd = 2 * maxseg;
394 tp->snd_cwnd = 3 * maxseg;
396 tp->snd_cwnd = 4 * maxseg;
440 tp->snd_cwnd = tp->snd_cwnd_prev;
2470 * snd_cwnd reduction that occurs when a TFO SYN|ACK
2612 tp->snd_cwnd += maxseg;
2613 if (tp->snd_cwnd > tp->snd_ssthresh)
2614 tp->snd_cwnd = tp->snd_ssthresh;
2617 tp->snd_cwnd += maxseg;
2652 tp->snd_cwnd = maxseg;
2657 tp->snd_cwnd = maxseg;
2662 tp->snd_cwnd = tp->snd_ssthresh +
2675 * ACK by increasing snd_cwnd by one
2677 * snd_cwnd after packet transmission.
2681 uint32_t oldcwnd = tp->snd_cwnd;
2692 tp->snd_cwnd =
2718 tp->snd_cwnd = oldcwnd;
3877 uint32_t ocwnd = tp->snd_cwnd;
3886 * Set snd_cwnd to one segment beyond acknowledged offset.
3889 tp->snd_cwnd = maxseg + BYTES_THIS_ACK(tp, th);
3892 tp->snd_cwnd = ocwnd;
3899 if (tp->snd_cwnd > BYTES_THIS_ACK(tp, th))
3900 tp->snd_cwnd -= BYTES_THIS_ACK(tp, th);
3902 tp->snd_cwnd = 0;
3903 tp->snd_cwnd += maxseg;