| /src/sys/netinet/cc/ |
| H A D | cc_htcp.c | 206 if (type == CC_ACK && !IN_RECOVERY(CCV(ccv, t_flags)) && in htcp_ack_received() 208 CCV(ccv, snd_cwnd) <= CCV(ccv, snd_ssthresh) || in htcp_ack_received() 218 CCV(ccv, snd_cwnd) <= CCV(ccv, snd_ssthresh)) in htcp_ack_received() 223 CCV(ccv, snd_cwnd) += htcp_data->alpha * in htcp_ack_received() 232 CCV(ccv, snd_cwnd) += (((htcp_data->alpha << in htcp_ack_received() 234 CCV(ccv, snd_cwnd) / mss))) * in htcp_ack_received() 292 if (!IN_FASTRECOVERY(CCV(ccv, t_flags))) { in htcp_cong_signal() 293 if (!IN_CONGRECOVERY(CCV(ccv, t_flags))) { in htcp_cong_signal() 304 htcp_data->prev_cwnd = CCV(ccv, snd_cwnd); in htcp_cong_signal() 306 ENTER_RECOVERY(CCV(ccv, t_flags)); in htcp_cong_signal() [all …]
|
| H A D | cc_dctcp.c | 115 if (CCV(ccv, t_flags2) & TF2_ECN_PERMIT) { in dctcp_ack_received() 121 if (IN_CONGRECOVERY(CCV(ccv, t_flags))) { in dctcp_ack_received() 122 EXIT_CONGRECOVERY(CCV(ccv, t_flags)); in dctcp_ack_received() 124 ENTER_CONGRECOVERY(CCV(ccv, t_flags)); in dctcp_ack_received() 160 if (!IN_FASTRECOVERY(CCV(ccv, t_flags)) && in dctcp_ack_received() 178 if (CCV(ccv, t_flags2) & TF2_ECN_PERMIT) { in dctcp_after_idle() 184 dctcp_data->save_sndnxt = CCV(ccv, snd_nxt); in dctcp_after_idle() 246 if (CCV(ccv, t_flags2) & TF2_ECN_PERMIT) { in dctcp_cong_signal() 248 cwin = CCV(ccv, snd_cwnd); in dctcp_cong_signal() 253 if (!IN_FASTRECOVERY(CCV(ccv, t_flags))) { in dctcp_cong_signal() [all …]
|
| H A D | cc.c | 397 if (IN_FASTRECOVERY(CCV(ccv, t_flags))) { in newreno_cc_post_recovery() 406 if (pipe < CCV(ccv, snd_ssthresh)) in newreno_cc_post_recovery() 411 CCV(ccv, snd_cwnd) = max(pipe, mss) + mss; in newreno_cc_post_recovery() 413 CCV(ccv, snd_cwnd) = CCV(ccv, snd_ssthresh); in newreno_cc_post_recovery() 440 CCV(ccv, snd_ssthresh) = max(CCV(ccv, snd_ssthresh), in newreno_cc_after_idle() 441 CCV(ccv, snd_cwnd)-(CCV(ccv, snd_cwnd)>>2)); in newreno_cc_after_idle() 443 CCV(ccv, snd_cwnd) = min(rw, CCV(ccv, snd_cwnd)); in newreno_cc_after_idle() 454 cwin = CCV(ccv, snd_cwnd); in newreno_cc_cwnd_on_multiplicative_decrease() 483 if (!IN_FASTRECOVERY(CCV(ccv, t_flags))) { in newreno_cc_cong_signal() 484 if (!IN_CONGRECOVERY(CCV(ccv, t_flags))) in newreno_cc_cong_signal() [all …]
|
| H A D | cc_chd.c | 152 win = min(CCV(ccv, snd_wnd), CCV(ccv, snd_cwnd)) / mss; in chd_window_decrease() 154 CCV(ccv, snd_ssthresh) = max(win, 2) * mss; in chd_window_decrease() 199 if (CCV(ccv, snd_cwnd) <= CCV(ccv, snd_ssthresh)) { in chd_window_increase() 203 if (CCV(ccv, snd_nxt) == CCV(ccv, snd_max)) { in chd_window_increase() 227 TCP_MAXWIN << CCV(ccv, snd_scale)); in chd_window_increase() 230 CCV(ccv,snd_cwnd) = min(CCV(ccv, snd_cwnd) + incr, in chd_window_increase() 231 TCP_MAXWIN << CCV(ccv, snd_scale)); in chd_window_increase() 246 e_t = khelp_get_osd(&CCV(ccv, t_osd), ertt_id); in chd_ack_received() 261 if (rtt && e_t->minrtt && !IN_RECOVERY(CCV(ccv, t_flags))) { in chd_ack_received() 288 chd_data->shadow_w = max(CCV(ccv, snd_cwnd), in chd_ack_received() [all …]
|
| H A D | cc_cubic.c | 170 u_int cw = CCV(ccv, snd_cwnd); in cubic_does_slow_start() 218 if (CCV(ccv, snd_nxt) == CCV(ccv, snd_max)) in cubic_does_slow_start() 231 CCV(ccv, snd_cwnd) = min((cw + incr), in cubic_does_slow_start() 232 TCP_MAXWIN << CCV(ccv, snd_scale)); in cubic_does_slow_start() 243 cwin = CCV(ccv, snd_cwnd); in cubic_ack_received() 251 if (type == CC_ACK && !IN_RECOVERY(CCV(ccv, t_flags)) && in cubic_ack_received() 254 if (cwin <= CCV(ccv, snd_ssthresh) || in cubic_ack_received() 267 cubic_log_hystart_event(ccv, cubic_data, 11, CCV(ccv, snd_ssthresh)); in cubic_ack_received() 316 CCV(ccv, snd_cwnd) = W_est; in cubic_ack_received() 332 CCV(ccv, snd_cwnd) = cwin + incr; in cubic_ack_received() [all …]
|
| H A D | cc_newreno.c | 221 if (type == CC_ACK && !IN_RECOVERY(CCV(ccv, t_flags)) && in newreno_ack_received() 223 u_int cw = CCV(ccv, snd_cwnd); in newreno_ack_received() 253 if (cw > CCV(ccv, snd_ssthresh)) { in newreno_ack_received() 263 newreno_log_hystart_event(ccv, nreno, 11, CCV(ccv, snd_ssthresh)); in newreno_ack_received() 326 if (CCV(ccv, snd_nxt) == CCV(ccv, snd_max)) in newreno_ack_received() 340 CCV(ccv, snd_cwnd) = min(cw + incr, in newreno_ack_received() 341 TCP_MAXWIN << CCV(ccv, snd_scale)); in newreno_ack_received() 358 newreno_log_hystart_event(ccv, nreno, 12, CCV(ccv, snd_ssthresh)); in newreno_after_idle() 371 cwin = CCV(ccv, snd_cwnd); in newreno_cong_signal() 402 newreno_log_hystart_event(ccv, nreno, 10, CCV(ccv, snd_ssthresh)); in newreno_cong_signal() [all …]
|
| H A D | cc_vegas.c | 134 e_t = khelp_get_osd(&CCV(ccv, t_osd), ertt_id); in vegas_ack_received() 146 if (CCV(ccv, snd_cwnd) <= in vegas_ack_received() 147 CCV(ccv, snd_ssthresh)) { in vegas_ack_received() 153 CCV(ccv, snd_cwnd) = in vegas_ack_received() 154 min(CCV(ccv, snd_cwnd) + mss, in vegas_ack_received() 155 TCP_MAXWIN << CCV(ccv, snd_scale)); in vegas_ack_received() 214 if (IN_RECOVERY(CCV(ccv, t_flags))) in vegas_cong_signal() 221 if (!IN_RECOVERY(CCV(ccv, t_flags))) { in vegas_cong_signal() 222 CCV(ccv, snd_cwnd) = max(2 * mss, in vegas_cong_signal() 223 CCV(ccv, snd_cwnd) - mss); in vegas_cong_signal() [all …]
|
| H A D | cc_cdg.c | 336 cdg_data->shadow_w = CCV(ccv, snd_cwnd); in cdg_conn_init() 404 return ((ulmin(CCV(ccv, snd_wnd), owin) * beta) / 100); in cdg_window_decrease() 424 if (CCV(ccv, snd_cwnd) <= CCV(ccv, snd_ssthresh)) { in cdg_window_increase() 448 TCP_MAXWIN << CCV(ccv, snd_scale)); in cdg_window_increase() 450 CCV(ccv, snd_cwnd) = ulmin(CCV(ccv, snd_cwnd) + incr, in cdg_window_increase() 451 TCP_MAXWIN << CCV(ccv, snd_scale)); in cdg_window_increase() 461 CCV(ccv, snd_ssthresh) = cdg_window_decrease(ccv, in cdg_cong_signal() 462 CCV(ccv, snd_cwnd), V_cdg_beta_delay); in cdg_cong_signal() 463 CCV(ccv, snd_cwnd) = CCV(ccv, snd_ssthresh); in cdg_cong_signal() 464 CCV(ccv, snd_recover) = CCV(ccv, snd_max); in cdg_cong_signal() [all …]
|
| H A D | cc_hd.c | 148 e_t = khelp_get_osd(&CCV(ccv, t_osd), ertt_id); in hd_ack_received() 154 !IN_RECOVERY(CCV(ccv, t_flags))) { in hd_ack_received()
|
| H A D | cc_module.h | 46 #define CCV(ccv, what) (ccv)->tp->what macro
|
| /src/share/man/man9/ |
| H A D | Makefile | 1619 MLINKS+=mod_cc.9 CCV.9 \
|