rs->tx_in_flight * BBR_LOSS_THRESH_MULT;
}
-static inline int bbr_is_probing_bw(struct bbr *bbr)
+static inline int bbr_is_in_a_probe_bw_state(struct bbr *bbr)
{
switch (bbr->state) {
case BBR_ST_PROBE_BW_DOWN:
{
uint64_t cap = UINT64_MAX;
- if (bbr_is_probing_bw(bbr) && bbr->state != BBR_ST_PROBE_BW_CRUISE)
+ if (bbr_is_in_a_probe_bw_state(bbr) && bbr->state != BBR_ST_PROBE_BW_CRUISE)
cap = bbr->inflight_hi;
else if (bbr->state == BBR_ST_PROBE_RTT || bbr->state == BBR_ST_PROBE_BW_CRUISE)
cap = bbr_inflight_with_headroom(bbr, p);
bbr->inflight_lo * BBR_BETA_MULT / BBR_BETA_DIVI);
}
-static inline int bbr_is_accelerating_probing_bw(struct bbr *bbr)
+static inline int bbr_is_probing_bw(struct bbr *bbr)
{
return bbr->state == BBR_ST_STARTUP ||
bbr->state == BBR_ST_PROBE_BW_REFILL ||
static void bbr_adapt_lower_bounds_from_congestion(struct bbr *bbr, struct quic_cc_path *p)
{
- if (bbr_is_accelerating_probing_bw(bbr))
+ if (bbr_is_probing_bw(bbr))
return;
if (bbr->loss_in_round) {
return; /* only handling steady-state behavior here */
bbr_adapt_upper_bounds(bbr, p, acked);
- if (!bbr_is_probing_bw(bbr))
+ if (!bbr_is_in_a_probe_bw_state(bbr))
return; /* only handling ProbeBW states here: */
switch (bbr->state) {
bbr->idle_restart = 1;
bbr->extra_acked_interval_start = now_ms;
- if (bbr_is_probing_bw(bbr))
+ if (bbr_is_in_a_probe_bw_state(bbr))
bbr_set_pacing_rate_with_gain(bbr, p, 100);
else if (bbr->state == BBR_ST_PROBE_RTT)
bbr_check_probe_rtt_done(bbr, p);