Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/cc/cc_cdg.c
Show First 20 Lines • Show All 468 Lines • ▼ Show 20 Lines | if (IN_CONGRECOVERY(CCV(ccv, t_flags)) || | ||||
cdg_window_decrease(ccv, cwin, V_cdg_beta_loss)); | cdg_window_decrease(ccv, cwin, V_cdg_beta_loss)); | ||||
CCV(ccv, snd_cwnd) = CCV(ccv, snd_ssthresh); | CCV(ccv, snd_cwnd) = CCV(ccv, snd_ssthresh); | ||||
cdg_data->window_incr = cdg_data->rtt_count = 0; | cdg_data->window_incr = cdg_data->rtt_count = 0; | ||||
} | } | ||||
ENTER_RECOVERY(CCV(ccv, t_flags)); | ENTER_RECOVERY(CCV(ccv, t_flags)); | ||||
break; | break; | ||||
case CC_RTO: | case CC_RTO: | ||||
CCV(ccv, snd_ssthresh) = max(2*mss, cwin/2); | CCV(ccv, snd_ssthresh) = max((CCV(ccv, snd_max) - | ||||
CCV(ccv, snd_una)) / 2, 2 * mss); | |||||
CCV(ccv, snd_cwnd) = mss; | CCV(ccv, snd_cwnd) = mss; | ||||
break; | break; | ||||
default: | default: | ||||
newreno_cc_algo.cong_signal(ccv, signal_type); | newreno_cc_algo.cong_signal(ccv, signal_type); | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |