Lines Matching refs:dctcp_data

109 	struct dctcp *dctcp_data;  in dctcp_ack_received()  local
113 dctcp_data = ccv->cc_data; in dctcp_ack_received()
135 dctcp_data->bytes_total += bytes_acked; in dctcp_ack_received()
138 if (dctcp_data->ece_curr) { in dctcp_ack_received()
141 if (!dctcp_data->ece_prev in dctcp_ack_received()
143 dctcp_data->bytes_ecn += in dctcp_ack_received()
146 dctcp_data->bytes_ecn += bytes_acked; in dctcp_ack_received()
147 dctcp_data->ece_prev = 1; in dctcp_ack_received()
149 if (dctcp_data->ece_prev in dctcp_ack_received()
151 dctcp_data->bytes_ecn += mss; in dctcp_ack_received()
152 dctcp_data->ece_prev = 0; in dctcp_ack_received()
154 dctcp_data->ece_curr = 0; in dctcp_ack_received()
161 SEQ_GT(ccv->curack, dctcp_data->save_sndnxt)) in dctcp_ack_received()
176 struct dctcp *dctcp_data; in dctcp_after_idle() local
179 dctcp_data = ccv->cc_data; in dctcp_after_idle()
182 dctcp_data->bytes_ecn = 0; in dctcp_after_idle()
183 dctcp_data->bytes_total = 0; in dctcp_after_idle()
184 dctcp_data->save_sndnxt = CCV(ccv, snd_nxt); in dctcp_after_idle()
185 dctcp_data->alpha = V_dctcp_alpha; in dctcp_after_idle()
186 dctcp_data->ece_curr = 0; in dctcp_after_idle()
187 dctcp_data->ece_prev = 0; in dctcp_after_idle()
188 dctcp_data->num_cong_events = 0; in dctcp_after_idle()
203 struct dctcp *dctcp_data; in dctcp_cb_init() local
207 dctcp_data = malloc(sizeof(struct dctcp), M_CC_MEM, M_NOWAIT|M_ZERO); in dctcp_cb_init()
208 if (dctcp_data == NULL) in dctcp_cb_init()
211 dctcp_data = ptr; in dctcp_cb_init()
213 dctcp_data->bytes_ecn = 0; in dctcp_cb_init()
214 dctcp_data->bytes_total = 0; in dctcp_cb_init()
226 dctcp_data->alpha = V_dctcp_alpha; in dctcp_cb_init()
227 dctcp_data->save_sndnxt = 0; in dctcp_cb_init()
228 dctcp_data->ce_prev = 0; in dctcp_cb_init()
229 dctcp_data->ece_curr = 0; in dctcp_cb_init()
230 dctcp_data->ece_prev = 0; in dctcp_cb_init()
231 dctcp_data->num_cong_events = 0; in dctcp_cb_init()
233 ccv->cc_data = dctcp_data; in dctcp_cb_init()
243 struct dctcp *dctcp_data; in dctcp_cong_signal() local
247 dctcp_data = ccv->cc_data; in dctcp_cong_signal()
257 dctcp_data->num_cong_events++; in dctcp_cong_signal()
278 dctcp_data->num_cong_events++ == 0) { in dctcp_cong_signal()
281 dctcp_data->alpha = MAX_ALPHA_VALUE; in dctcp_cong_signal()
282 dctcp_data->bytes_ecn = 0; in dctcp_cong_signal()
283 dctcp_data->bytes_total = 0; in dctcp_cong_signal()
284 dctcp_data->save_sndnxt = CCV(ccv, snd_nxt); in dctcp_cong_signal()
288 dctcp_data->alpha) >> (DCTCP_SHIFT+1))), in dctcp_cong_signal()
293 dctcp_data->ece_curr = 1; in dctcp_cong_signal()
309 dctcp_data->save_sndnxt += mss; in dctcp_cong_signal()
310 dctcp_data->num_cong_events++; in dctcp_cong_signal()
322 struct dctcp *dctcp_data; in dctcp_conn_init() local
324 dctcp_data = ccv->cc_data; in dctcp_conn_init()
327 dctcp_data->save_sndnxt = CCV(ccv, snd_nxt); in dctcp_conn_init()
352 struct dctcp *dctcp_data; in dctcp_ecnpkt_handler() local
356 dctcp_data = ccv->cc_data; in dctcp_ecnpkt_handler()
365 if (!dctcp_data->ce_prev) { in dctcp_ecnpkt_handler()
367 dctcp_data->ce_prev = 1; in dctcp_ecnpkt_handler()
371 if (dctcp_data->ce_prev) { in dctcp_ecnpkt_handler()
373 dctcp_data->ce_prev = 0; in dctcp_ecnpkt_handler()
392 struct dctcp *dctcp_data; in dctcp_update_alpha() local
395 dctcp_data = ccv->cc_data; in dctcp_update_alpha()
396 alpha_prev = dctcp_data->alpha; in dctcp_update_alpha()
397 dctcp_data->bytes_total = max(dctcp_data->bytes_total, 1); in dctcp_update_alpha()
410 dctcp_data->alpha = ulmin(alpha_prev - (alpha_prev >> V_dctcp_shift_g) + in dctcp_update_alpha()
411 ((uint64_t)dctcp_data->bytes_ecn << (DCTCP_SHIFT - V_dctcp_shift_g)) / in dctcp_update_alpha()
412 dctcp_data->bytes_total, MAX_ALPHA_VALUE); in dctcp_update_alpha()
415 dctcp_data->bytes_ecn = 0; in dctcp_update_alpha()
416 dctcp_data->bytes_total = 0; in dctcp_update_alpha()
417 dctcp_data->save_sndnxt = CCV(ccv, snd_nxt); in dctcp_update_alpha()