Lines Matching defs:gain
173 * How much gain do we need to see to
178 static int32_t bbr_low_start_exit = 25; /* When we are in reduced gain */
221 * is used for both cwnd and hptsi gain's.
251 * hptsi gain and thus drainging the packets
258 * The cwnd_gain is the default cwnd gain applied when
438 bbr_get_pacing_length(struct tcp_bbr *bbr, uint16_t gain,
441 bbr_get_a_state_target(struct tcp_bbr *bbr, uint32_t gain);
450 bbr_get_target_cwnd(struct tcp_bbr *bbr, uint64_t bw, uint32_t gain);
509 bbr_log_pacing_delay_calc(struct tcp_bbr *bbr, uint16_t gain, uint32_t len,
1175 OID_AUTO, "gain", CTLFLAG_RW,
1177 "What is the filter gain drop in probe_rtt (0=disable)?");
1444 "Does probe bw gain to target??");
1449 "Does probe bw gain get the extra time too?");
1494 "Should we have losses exit gain of probebw in google mode??");
1516 "Should we use a lower hptsi gain if we see loss in startup?");
1519 OID_AUTO, "gain", CTLFLAG_RW,
1521 "What gain percent do we need to see to stay in startup??");
1526 "What gain percent do we need to see to stay in the lower gain startup??");
2451 bbr_log_pacing_delay_calc(struct tcp_bbr *bbr, uint16_t gain, uint32_t len,
2467 log.u_bbr.flex7 = gain;
3405 * Given a specified gain, return the target
3406 * cwnd based on that gain.
3409 bbr_get_raw_target_cwnd(struct tcp_bbr *bbr, uint32_t gain, uint64_t bw)
3426 /* Now apply the gain */
3427 cwnd = (uint32_t)(((bdp * ((uint64_t)gain)) + (uint64_t)(BBR_UNIT - 1)) / ((uint64_t)BBR_UNIT));
3433 bbr_get_target_cwnd(struct tcp_bbr *bbr, uint64_t bw, uint32_t gain)
3438 /* Get the base cwnd with gain rounded to a mss */
3439 cwnd = roundup(bbr_get_raw_target_cwnd(bbr, bw, gain), mss);
3451 * an extra 2 x mss in gain cycle which
3469 bbr_gain_adjust(struct tcp_bbr *bbr, uint16_t gain)
3471 if (gain < 1)
3472 gain = 1;
3473 return (gain);
3508 bbr_get_pacing_length(struct tcp_bbr *bbr, uint16_t gain, uint32_t useconds_time, uint64_t bw)
3514 gain = bbr_gain_adjust(bbr, gain);
3517 res = (tim * bw * gain) / divor;
3524 * Given a gain and a length return the delay in useconds that
3526 * on the connection (based on the gain factor).
3529 bbr_get_pacing_delay(struct tcp_bbr *bbr, uint16_t gain, int32_t len, uint32_t cts, int nolog)
3544 gain = bbr_gain_adjust(bbr, gain);
3562 res = lentim / ((uint64_t)gain * bw);
3578 bbr_log_pacing_delay_calc(bbr, gain, len, cts, usecs, bw, over, 1);
3726 * Method 4 means we are at target so no gain in
3948 * any timers. This may mean we gain an agg
3957 * delivery rate with no gain. We get the bdp
5484 /* We can use a lower gain */
5656 * just gain a bit of spacing from the
5781 /* Google considers the gain too */
10303 * We enter the gain(5/4) cycle (possibly less if
10310 * do level i.e. no gain.
10317 * We can't gain above the hardware pacing
10318 * rate which is less than our rate + the gain
10319 * calculate the gain needed to reach the hardware
10447 * the gain cycle extra rules apply:
10450 * we stay in GAIN (gain-to-target).
10459 /* For gain we must reach our target, all others last 1 rttProp */
10505 * the gain. We need to drain harder
10507 * the gain drop is capped at DRAIN states
10523 /* Reduce our gain again to the bottom */
10544 /* Its a gain */
10593 bbr_get_a_state_target(struct tcp_bbr *bbr, uint32_t gain)
10599 tar = bbr_get_target_cwnd(bbr, bbr_get_bw(bbr), gain);
10603 /* Get the base cwnd with gain rounded to a mss */
10605 gain), mss);
10627 /* For gain cycle we use the hptsi gain */
10639 * Or we set a target based on the pacing gain
10702 * We bring it down slowly by using a hptsi gain that is
10881 uint64_t btlbw, gain;
10889 gain = ((bbr->r_ctl.rc_bbr_lastbtlbw *
10891 if (btlbw >= gain) {
10908 uint64_t btlbw, gain;
10931 /* Drop to a lower gain 1.5 x since we saw loss */
10944 * gain in rtt over a set threshold?
10962 * our gain threhold for
10979 * the number of non-gain we have already accumulated.
10993 gain = ((bbr->r_ctl.rc_bbr_lastbtlbw *
10996 gain = ((bbr->r_ctl.rc_bbr_lastbtlbw *
11001 if (btlbw >= gain) {
11013 * If we had no gain, we had loss and that loss was above
11212 * gain an srtt and have still not made it
11214 * Lets reduce the gain by xx%
11224 /* Reduce our gain again */
13902 /* Now what is our gain status? */