Index: netinet/tcp_stacks/rack.c =================================================================== --- netinet/tcp_stacks/rack.c +++ netinet/tcp_stacks/rack.c @@ -1681,7 +1681,7 @@ 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 @@ */ tcp_update_peakrate_thr(tp); } +#endif } #endif if (tp->snd_cwnd > tp->snd_ssthresh) { Index: netinet/tcp_stacks/rack_bbr_common.h =================================================================== --- netinet/tcp_stacks/rack_bbr_common.h +++ netinet/tcp_stacks/rack_bbr_common.h @@ -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