Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/cc/cc_dctcp.c
Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | if (dctcp_data->ece_curr) { | ||||
dctcp_data->ece_prev = 0; | dctcp_data->ece_prev = 0; | ||||
} | } | ||||
dctcp_data->ece_curr = 0; | dctcp_data->ece_curr = 0; | ||||
/* | /* | ||||
* Update the fraction of marked bytes at the end of | * Update the fraction of marked bytes at the end of | ||||
* current window size. | * current window size. | ||||
*/ | */ | ||||
if ((IN_FASTRECOVERY(CCV(ccv, t_flags)) && | if (!IN_FASTRECOVERY(CCV(ccv, t_flags)) && | ||||
SEQ_GEQ(ccv->curack, CCV(ccv, snd_recover))) || | SEQ_GT(ccv->curack, dctcp_data->save_sndnxt)) | ||||
(!IN_FASTRECOVERY(CCV(ccv, t_flags)) && | |||||
SEQ_GT(ccv->curack, dctcp_data->save_sndnxt))) | |||||
dctcp_update_alpha(ccv); | dctcp_update_alpha(ccv); | ||||
} else | } else | ||||
newreno_cc_algo.ack_received(ccv, type); | newreno_cc_algo.ack_received(ccv, type); | ||||
} | } | ||||
static void | static void | ||||
dctcp_after_idle(struct cc_var *ccv) | dctcp_after_idle(struct cc_var *ccv) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 300 Lines • Show Last 20 Lines |