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,657 Lines • ▼ Show 20 Lines | #endif | ||||
if ((recovery) && (rack->r_ctl.rc_early_recovery_segs)) { | if ((recovery) && (rack->r_ctl.rc_early_recovery_segs)) { | ||||
uint32_t max; | uint32_t max; | ||||
max = rack->r_ctl.rc_early_recovery_segs * ctf_fixed_maxseg(tp); | max = rack->r_ctl.rc_early_recovery_segs * ctf_fixed_maxseg(tp); | ||||
if (tp->ccv->bytes_this_ack > max) { | if (tp->ccv->bytes_this_ack > max) { | ||||
tp->ccv->bytes_this_ack = max; | tp->ccv->bytes_this_ack = max; | ||||
} | } | ||||
} | } | ||||
if (tp->snd_cwnd <= tp->snd_wnd) | if ((!V_tcp_do_newcwv && (tp->snd_cwnd <= tp->snd_wnd)) || | ||||
(V_tcp_do_newcwv && (tp->snd_cwnd <= tp->snd_wnd) && | |||||
(tp->snd_cwnd < (ctf_flight_size(tp, rack->r_ctl.rc_sacked) * 2)))) | |||||
tp->ccv->flags |= CCF_CWND_LIMITED; | tp->ccv->flags |= CCF_CWND_LIMITED; | ||||
else | else | ||||
tp->ccv->flags &= ~CCF_CWND_LIMITED; | tp->ccv->flags &= ~CCF_CWND_LIMITED; | ||||
if (type == CC_ACK) { | if (type == CC_ACK) { | ||||
#ifdef NETFLIX_STATS | #ifdef NETFLIX_STATS | ||||
stats_voi_update_abs_s32(tp->t_stats, VOI_TCP_CALCFRWINDIFF, | stats_voi_update_abs_s32(tp->t_stats, VOI_TCP_CALCFRWINDIFF, | ||||
((int32_t) tp->snd_cwnd) - tp->snd_wnd); | ((int32_t) tp->snd_cwnd) - tp->snd_wnd); | ||||
▲ Show 20 Lines • Show All 8,891 Lines • Show Last 20 Lines |