Home
last modified time | relevance | path

Searched refs:t_ccstate (Results 1 – 6 of 6) sorted by relevance

/xnu-11417.101.15/bsd/netinet/
H A Dtcp_prague.c102 if (tp->t_ccstate->cubic_epoch_start == 0) { in cubic_target()
108 tp->t_ccstate->cubic_epoch_start = tcp_globals_now(globals); in cubic_target()
109 if (tp->t_ccstate->cubic_epoch_start == 0) { in cubic_target()
110 tp->t_ccstate->cubic_epoch_start = 1; in cubic_target()
112 if (tp->snd_cwnd < tp->t_ccstate->cubic_W_max) { in cubic_target()
119 K = ((float)(tp->t_ccstate->cubic_W_max - tp->snd_cwnd)) / cubic_c_factor / tp->t_maxseg; in cubic_target()
121 tp->t_ccstate->cubic_K = K * TCP_RETRANSHZ; /* in milliseconds */ in cubic_target()
122 tp->t_ccstate->cubic_origin_point = tp->t_ccstate->cubic_W_max; in cubic_target()
124 tp->t_ccstate->cubic_K = 0; in cubic_target()
125 tp->t_ccstate->cubic_origin_point = tp->t_ccstate->cubic_W_max = tp->snd_cwnd; in cubic_target()
[all …]
H A Dtcp_cubic.c92 VERIFY(tp->t_ccstate != NULL); in tcp_cubic_init()
112 VERIFY(tp->t_ccstate != NULL); in tcp_cubic_cwnd_init_or_reset()
135 tp->t_ccstate->cub_last_max = tp->snd_ssthresh; in tcp_cubic_cwnd_init_or_reset()
152 if (tp->t_ccstate->cub_last_max == 0) { in tcp_cubic_update()
153 tp->t_ccstate->cub_last_max = tp->snd_ssthresh; in tcp_cubic_update()
156 if (tp->t_ccstate->cub_epoch_start == 0) { in tcp_cubic_update()
162 tp->t_ccstate->cub_epoch_start = tcp_globals_now(globals); in tcp_cubic_update()
163 if (tp->t_ccstate->cub_epoch_start == 0) { in tcp_cubic_update()
164 tp->t_ccstate->cub_epoch_start = 1; in tcp_cubic_update()
166 if (win < tp->t_ccstate->cub_last_max) { in tcp_cubic_update()
[all …]
H A Dtcp_ledbat.c157 tp->t_ccstate->ledbat_slowdown_events = 0; in tcp_ledbat_clear_state()
158 tp->t_ccstate->ledbat_slowdown_ts = 0; in tcp_ledbat_clear_state()
159 tp->t_ccstate->ledbat_slowdown_begin = 0; in tcp_ledbat_clear_state()
160 tp->t_ccstate->ledbat_md_bytes_acked = 0; in tcp_ledbat_clear_state()
239 if (tp->t_ccstate->ledbat_slowdown_ts == 0) { in ledbat_pp_congestion_avd()
241 if (tp->t_ccstate->ledbat_slowdown_events > 0) { in ledbat_pp_congestion_avd()
243 tp->t_ccstate->ledbat_slowdown_begin; in ledbat_pp_congestion_avd()
254 tp->t_ccstate->ledbat_slowdown_ts = now + (9 * slowdown_duration); in ledbat_pp_congestion_avd()
256 tp->t_ccstate->ledbat_slowdown_ts += (2 * (tp->t_srtt >> TCP_RTT_SHIFT)); in ledbat_pp_congestion_avd()
259 tp->t_ccstate->ledbat_slowdown_begin = 0; in ledbat_pp_congestion_avd()
[all …]
H A Dtcp_ccdbg.c126 tp->t_ccstate->cub_last_max; in tcp_ccdbg_trace()
128 tp->t_ccstate->cub_tcp_win; in tcp_ccdbg_trace()
130 tp->t_ccstate->cub_avg_lastmax; in tcp_ccdbg_trace()
132 tp->t_ccstate->cub_mean_dev; in tcp_ccdbg_trace()
H A Dtcp_cc.c219 tp->t_ccstate == NULL) { in tcp_cc_allocate_state()
220 tp->t_ccstate = &tp->_t_ccstate; in tcp_cc_allocate_state()
222 bzero(tp->t_ccstate, sizeof(*tp->t_ccstate)); in tcp_cc_allocate_state()
H A Dtcp_var.h684 struct tcp_ccstate *t_ccstate; /* congestion control related state */ member