Lines Matching refs:BBR_UNIT
76 #define BBR_UNIT (1 << BBR_SCALE)
152 static const int bbr_high_gain = BBR_UNIT * 2885 / 1000 + 1;
156 static const int bbr_drain_gain = BBR_UNIT * 1000 / 2885;
158 static const int bbr_cwnd_gain = BBR_UNIT * 2;
161 BBR_UNIT * 5 / 4, /* probe for more available bw */
162 BBR_UNIT * 3 / 4, /* drain queue and/or yield bw to other flows */
163 BBR_UNIT, BBR_UNIT, BBR_UNIT, /* cruise at 1.0*bw to utilize pipe, */
164 BBR_UNIT, BBR_UNIT, BBR_UNIT /* without creating excess queue... */
177 static const u32 bbr_full_bw_thresh = BBR_UNIT * 5 / 4;
187 static const u32 bbr_lt_bw_ratio = BBR_UNIT / 8;
194 static const int bbr_extra_acked_gain = BBR_UNIT;
342 bbr_set_pacing_rate(sk, bbr_bw(sk), BBR_UNIT);
446 if (bbr->pacing_gain > BBR_UNIT) /* increasing inflight */
564 if (bbr->pacing_gain == BBR_UNIT)
575 if (bbr->pacing_gain > BBR_UNIT)
585 inflight <= bbr_inflight(sk, bw, BBR_UNIT);
663 if ((diff * BBR_UNIT <= bbr_lt_bw_ratio * bbr->lt_bw) ||
664 (bbr_rate_bytes_per_sec(sk, diff, BBR_UNIT) <=
669 bbr->pacing_gain = BBR_UNIT; /* try to avoid drops */
897 bbr_inflight(sk, bbr_max_bw(sk), BBR_UNIT);
901 bbr_inflight(sk, bbr_max_bw(sk), BBR_UNIT))
999 BBR_UNIT :
1004 bbr->pacing_gain = BBR_UNIT;
1005 bbr->cwnd_gain = BBR_UNIT;