Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/cc/cc_newreno.c
Show First 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | if (IN_FASTRECOVERY(CCV(ccv, t_flags))) { | ||||
* Fast recovery will conclude after returning from this | * Fast recovery will conclude after returning from this | ||||
* function. Window inflation should have left us with | * function. Window inflation should have left us with | ||||
* approximately snd_ssthresh outstanding data. But in case we | * approximately snd_ssthresh outstanding data. But in case we | ||||
* would be inclined to send a burst, better to do it via the | * would be inclined to send a burst, better to do it via the | ||||
* slow start mechanism. | * slow start mechanism. | ||||
* | * | ||||
* XXXLAS: Find a way to do this without needing curack | * XXXLAS: Find a way to do this without needing curack | ||||
*/ | */ | ||||
if (V_tcp_do_rfc6675_pipe) | if (V_tcp_do_newsack) | ||||
pipe = tcp_compute_pipe(ccv->ccvc.tcp); | pipe = tcp_compute_pipe(ccv->ccvc.tcp); | ||||
else | else | ||||
pipe = CCV(ccv, snd_max) - ccv->curack; | pipe = CCV(ccv, snd_max) - ccv->curack; | ||||
if (pipe < CCV(ccv, snd_ssthresh)) | if (pipe < CCV(ccv, snd_ssthresh)) | ||||
/* | /* | ||||
* Ensure that cwnd does not collapse to 1 MSS under | * Ensure that cwnd does not collapse to 1 MSS under | ||||
* adverse conditons. Implements RFC6582 | * adverse conditons. Implements RFC6582 | ||||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |