File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -198,9 +198,9 @@ static void bbr_init_pacing_rate(struct quic_cc *cc, struct bbr *bbr)
198198{
199199 struct quic_cc_path * p = container_of (cc , struct quic_cc_path , cc );
200200 unsigned int srtt = p -> loss .srtt ;
201- uint64_t nominal_bandwidth = 1000 * p -> initial_wnd / (srtt ? srtt : 1 );
202201
203- bbr -> pacing_rate = BBR_STARTUP_PACING_GAIN_MULT * nominal_bandwidth / BBR_GAIN_DIVI ;
202+ bbr -> pacing_rate = 1000 * p -> initial_wnd * BBR_STARTUP_PACING_GAIN_MULT /
203+ BBR_GAIN_DIVI / (srtt ? srtt : 1 );
204204}
205205
206206static void bbr_enter_startup (struct bbr * bbr )
@@ -1133,7 +1133,7 @@ struct quic_cc_drs *bbr_get_drs(struct quic_cc *cc)
11331133 return ((struct bbr * )quic_cc_priv (cc ))-> drs ;
11341134}
11351135
1136- /* Return the pacing delay betwen burst of packets in nanoseconds */
1136+ /* Return the pacing delay between bursts of packets in nanoseconds */
11371137unsigned long long bbr_pacing_delay_ns (const struct quic_cc * cc )
11381138{
11391139 struct bbr * bbr = quic_cc_priv (cc );
You can’t perform that action at this time.
0 commit comments