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 3,905 Lines • ▼ Show 20 Lines | if ((type == CC_ACK) && | ||||
* it will only be used if pace_always is off i.e | * it will only be used if pace_always is off i.e | ||||
* we don't do this for paced flows. | * we don't do this for paced flows. | ||||
*/ | */ | ||||
tcp_update_peakrate_thr(tp); | tcp_update_peakrate_thr(tp); | ||||
} | } | ||||
#endif | #endif | ||||
} | } | ||||
if (rack->r_ctl.cwnd_to_use > tp->snd_ssthresh) { | if (rack->r_ctl.cwnd_to_use > tp->snd_ssthresh) { | ||||
tp->t_bytes_acked += min(tp->ccv->bytes_this_ack, | tp->t_bytes_acked += tp->ccv->bytes_this_ack; | ||||
nsegs * V_tcp_abc_l_var * ctf_fixed_maxseg(tp)); | |||||
if (tp->t_bytes_acked >= rack->r_ctl.cwnd_to_use) { | if (tp->t_bytes_acked >= rack->r_ctl.cwnd_to_use) { | ||||
tp->t_bytes_acked -= rack->r_ctl.cwnd_to_use; | tp->t_bytes_acked -= rack->r_ctl.cwnd_to_use; | ||||
tp->ccv->flags |= CCF_ABC_SENTAWND; | tp->ccv->flags |= CCF_ABC_SENTAWND; | ||||
} | } | ||||
} else { | } else { | ||||
tp->ccv->flags &= ~CCF_ABC_SENTAWND; | tp->ccv->flags &= ~CCF_ABC_SENTAWND; | ||||
tp->t_bytes_acked = 0; | tp->t_bytes_acked = 0; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 11,056 Lines • Show Last 20 Lines |