Lines Matching refs:BBR_UNIT
78 #define BBR_UNIT (1 << BBR_SCALE)
154 static const int bbr_high_gain = BBR_UNIT * 2885 / 1000 + 1;
158 static const int bbr_drain_gain = BBR_UNIT * 1000 / 2885;
160 static const int bbr_cwnd_gain = BBR_UNIT * 2;
163 BBR_UNIT * 5 / 4, /* probe for more available bw */
164 BBR_UNIT * 3 / 4, /* drain queue and/or yield bw to other flows */
165 BBR_UNIT, BBR_UNIT, BBR_UNIT, /* cruise at 1.0*bw to utilize pipe, */
166 BBR_UNIT, BBR_UNIT, BBR_UNIT /* without creating excess queue... */
179 static const u32 bbr_full_bw_thresh = BBR_UNIT * 5 / 4;
189 static const u32 bbr_lt_bw_ratio = BBR_UNIT / 8;
196 static const int bbr_extra_acked_gain = BBR_UNIT;
344 bbr_set_pacing_rate(sk, bbr_bw(sk), BBR_UNIT);
448 if (bbr->pacing_gain > BBR_UNIT) /* increasing inflight */
566 if (bbr->pacing_gain == BBR_UNIT)
577 if (bbr->pacing_gain > BBR_UNIT)
587 inflight <= bbr_inflight(sk, bw, BBR_UNIT);
665 if ((diff * BBR_UNIT <= bbr_lt_bw_ratio * bbr->lt_bw) ||
666 (bbr_rate_bytes_per_sec(sk, diff, BBR_UNIT) <=
671 bbr->pacing_gain = BBR_UNIT; /* try to avoid drops */
899 bbr_inflight(sk, bbr_max_bw(sk), BBR_UNIT);
903 bbr_inflight(sk, bbr_max_bw(sk), BBR_UNIT))
1001 BBR_UNIT :
1006 bbr->pacing_gain = BBR_UNIT;
1007 bbr->cwnd_gain = BBR_UNIT;