Now that all of the stats framework is

in FreeBSD the bits that disabled stats
when netflix-stats is not defined is no longer
needed. Lets remove these bits so that we
will properly use stats per its definition
in BBR and Rack.

Sponsored by:	Netflix Inc
Differential Revision:	https://reviews.freebsd.org/D23088
This commit is contained in:
Randall Stewart 2020-02-12 12:36:55 +00:00
parent c626c88e58
commit d2517ab04b
2 changed files with 2 additions and 6 deletions

View File

@ -1681,7 +1681,7 @@ rack_ack_received(struct tcpcb *tp, struct tcp_rack *rack, struct tcphdr *th, ui
tp->t_stats_gput_prev);
tp->t_flags &= ~TF_GPUTINPROG;
tp->t_stats_gput_prev = gput;
#ifdef NETFLIX_PEAKRATE
if (tp->t_maxpeakrate) {
/*
* We update t_peakrate_thr. This gives us roughly
@ -1689,6 +1689,7 @@ rack_ack_received(struct tcpcb *tp, struct tcp_rack *rack, struct tcphdr *th, ui
*/
tcp_update_peakrate_thr(tp);
}
#endif
}
#endif
if (tp->snd_cwnd > tp->snd_ssthresh) {

View File

@ -27,11 +27,6 @@
* __FBSDID("$FreeBSD$");
*/
/* XXXLAS: Couple STATS to NETFLIX_STATS until stats(3) is fully upstreamed. */
#ifndef NETFLIX_STATS
#undef STATS
#endif
/* Common defines and such used by both RACK and BBR */
/* Special values for mss accounting array */
#define TCP_MSS_ACCT_JUSTRET 0