Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_stacks/rack.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 1,675 Lines • ▼ Show 20 Lines | if ((tp->t_flags & TF_GPUTINPROG) && | ||||
*/ | */ | ||||
if (tp->t_stats_gput_prev > 0) | if (tp->t_stats_gput_prev > 0) | ||||
stats_voi_update_abs_s32(tp->t_stats, | stats_voi_update_abs_s32(tp->t_stats, | ||||
VOI_TCP_GPUT_ND, | VOI_TCP_GPUT_ND, | ||||
((gput - tp->t_stats_gput_prev) * 100) / | ((gput - tp->t_stats_gput_prev) * 100) / | ||||
tp->t_stats_gput_prev); | tp->t_stats_gput_prev); | ||||
tp->t_flags &= ~TF_GPUTINPROG; | tp->t_flags &= ~TF_GPUTINPROG; | ||||
tp->t_stats_gput_prev = gput; | tp->t_stats_gput_prev = gput; | ||||
#ifdef NETFLIX_PEAKRATE | |||||
if (tp->t_maxpeakrate) { | if (tp->t_maxpeakrate) { | ||||
/* | /* | ||||
* We update t_peakrate_thr. This gives us roughly | * We update t_peakrate_thr. This gives us roughly | ||||
* one update per round trip time. | * one update per round trip time. | ||||
*/ | */ | ||||
tcp_update_peakrate_thr(tp); | tcp_update_peakrate_thr(tp); | ||||
} | } | ||||
#endif | |||||
} | } | ||||
#endif | #endif | ||||
if (tp->snd_cwnd > tp->snd_ssthresh) { | if (tp->snd_cwnd > tp->snd_ssthresh) { | ||||
tp->t_bytes_acked += min(tp->ccv->bytes_this_ack, | tp->t_bytes_acked += min(tp->ccv->bytes_this_ack, | ||||
nsegs * V_tcp_abc_l_var * ctf_fixed_maxseg(tp)); | nsegs * V_tcp_abc_l_var * ctf_fixed_maxseg(tp)); | ||||
if (tp->t_bytes_acked >= tp->snd_cwnd) { | if (tp->t_bytes_acked >= tp->snd_cwnd) { | ||||
tp->t_bytes_acked -= tp->snd_cwnd; | tp->t_bytes_acked -= tp->snd_cwnd; | ||||
tp->ccv->flags |= CCF_ABC_SENTAWND; | tp->ccv->flags |= CCF_ABC_SENTAWND; | ||||
▲ Show 20 Lines • Show All 8,872 Lines • Show Last 20 Lines |