Lines Matching defs:cwnd

221  * is used for both cwnd and hptsi gain's.
258 * The cwnd_gain is the default cwnd gain applied when
259 * calculating a target cwnd. Note that the cwnd is
264 * if the cwnd is high. In our implemenation that
266 * cwnd will never be reached by the flight-size.
896 * If we are not cwnd limited and we
931 * not cwnd limited.
1180 OID_AUTO, "cwnd", CTLFLAG_RW,
1227 "Should we set/recover cwnd?");
1479 "Should we set/recover cwnd for sub-state drain?");
1484 "Should we set/recover cwnd for main-state drain?");
1536 "cwnd",
1543 "Target cwnd rtt measurement to use (0=rtt_prop, 1=rtt_rack, 2=pkt_rtt, 3=srtt)?");
1548 "Can the cwnd shrink if it would grow to more than the target?");
1553 "Do we limit the cwnd to some multiple of the cwnd target if cwnd can't shrink 0=no?");
1558 "What is the high-speed min cwnd (rttProp under 1ms)");
1563 "What is the min cwnd (rttProp > 1ms)");
1583 "Do we restrict cwnd growth for whats in flight?");
3377 * Return the initial cwnd.
3406 * cwnd based on that gain.
3412 uint32_t cwnd;
3427 cwnd = (uint32_t)(((bdp * ((uint64_t)gain)) + (uint64_t)(BBR_UNIT - 1)) / ((uint64_t)BBR_UNIT));
3429 return (cwnd);
3435 uint32_t cwnd, mss;
3438 /* Get the base cwnd with gain rounded to a mss */
3439 cwnd = roundup(bbr_get_raw_target_cwnd(bbr, bw, gain), mss);
3445 cwnd += (bbr_quanta * bbr->r_ctl.rc_pace_max_segs);
3455 cwnd += 2 * mss;
3457 if ((cwnd / mss) & 0x1) {
3459 cwnd += mss;
3462 /* Are we below the min cwnd? */
3463 if (cwnd < get_min_cwnd(bbr))
3465 return (cwnd);
3587 uint32_t cwnd, target_cwnd, saved_bytes, maxseg;
3638 cwnd = tp->snd_cwnd;
3654 cwnd = ctf_flight_size(tp,
3662 if (cwnd > losses) {
3663 cwnd -= losses;
3664 if (cwnd < maxseg)
3665 cwnd = maxseg;
3667 cwnd = maxseg;
3684 if ((flight + bytes_this_ack) > cwnd)
3685 cwnd = flight + bytes_this_ack;
3686 if (cwnd < get_min_cwnd(bbr))
3687 cwnd = get_min_cwnd(bbr);
3688 tp->snd_cwnd = cwnd;
3704 * thus allow the cwnd to shrink to the target. We hit here
3710 s_cwnd = min((cwnd + bytes_this_ack), target_cwnd);
3711 if (s_cwnd > cwnd)
3712 cwnd = s_cwnd;
3714 cwnd = s_cwnd;
3717 * Here we are still in startup, we increase cwnd by what
3720 if ((cwnd < target_cwnd) ||
3723 cwnd += bytes_this_ack;
3732 tp->snd_cwnd = max(cwnd, get_min_cwnd(bbr));
3793 uint32_t maxseg, newcwnd, acks_inflight, ratio, cwnd;
3819 * Here we must poke at the saved cwnd
3820 * as well as the cwnd.
3822 cwnd = bbr->r_ctl.rc_saved_cwnd;
3825 cwnd = tp->snd_cwnd;
3848 val = (uint64_t)cwnd * lr2use;
3850 if (cwnd > val)
3851 newcwnd = roundup((cwnd - val), maxseg);
3855 val = (uint64_t)cwnd * (uint64_t)bbr_red_mul;
3863 * raise the cwnd based on the acks.
3956 * Calculate a new cwnd based on to the current
3968 /* We always gate to min cwnd */
4998 * first retransmit; record ssthresh and cwnd so they can be
5771 * we have acked at least the initial cwnd worth of data.
7798 * retransmit in the first place. Recover our original cwnd and
10401 /* Slam down the cwnd */
10598 /* Google just uses the cwnd target */
10603 /* Get the base cwnd with gain rounded to a mss */
10704 * without tampering with the cwnd.
11110 /* We have reached a flight of the cwnd target */
11154 /* Restore the cwnd */
11176 * We must keep cwnd at the desired MSS.
11646 * cwnd or rwnd.
11664 * We have in flight what we are allowed by cwnd (if
11753 * Limit the cwnd to not be above N x the target plus whats
12496 * the cwnd is not so small that we could
12500 * of the socket buffer and the cwnd is blocking
13742 * capping the cwnd at the current flight.