Lines Matching refs:htcp_ca
1982 net->cc_mod.htcp_ca.last_cong = net->cc_mod.htcp_ca.undo_last_cong; in htcp_cwnd_undo()
1983 net->cc_mod.htcp_ca.maxRTT = net->cc_mod.htcp_ca.undo_maxRTT; in htcp_cwnd_undo()
1984 net->cc_mod.htcp_ca.old_maxB = net->cc_mod.htcp_ca.undo_old_maxB; in htcp_cwnd_undo()
1985 return (max(net->cwnd, ((net->ssthresh/net->mtu<<7)/net->cc_mod.htcp_ca.beta)*net->mtu)); in htcp_cwnd_undo()
1996 if (net->cc_mod.htcp_ca.minRTT > srtt || !net->cc_mod.htcp_ca.minRTT) in measure_rtt()
1997 net->cc_mod.htcp_ca.minRTT = srtt; in measure_rtt()
2000 if (net->fast_retran_ip == 0 && net->ssthresh < 0xFFFF && htcp_ccount(&net->cc_mod.htcp_ca) > 3) { in measure_rtt()
2001 if (net->cc_mod.htcp_ca.maxRTT < net->cc_mod.htcp_ca.minRTT) in measure_rtt()
2002 net->cc_mod.htcp_ca.maxRTT = net->cc_mod.htcp_ca.minRTT; in measure_rtt()
2003 …if (net->cc_mod.htcp_ca.maxRTT < srtt && srtt <= net->cc_mod.htcp_ca.maxRTT+sctp_msecs_to_ticks(20… in measure_rtt()
2004 net->cc_mod.htcp_ca.maxRTT = srtt; in measure_rtt()
2014 net->cc_mod.htcp_ca.bytes_acked = net->net_ack; in measure_achieved_throughput()
2022 net->cc_mod.htcp_ca.bytecount = 0; in measure_achieved_throughput()
2023 net->cc_mod.htcp_ca.lasttime = now; in measure_achieved_throughput()
2027 net->cc_mod.htcp_ca.bytecount += net->net_ack; in measure_achieved_throughput()
2028 …if ((net->cc_mod.htcp_ca.bytecount >= net->cwnd - (((net->cc_mod.htcp_ca.alpha >> 7) ? (net->cc_mo… in measure_achieved_throughput()
2029 (now - net->cc_mod.htcp_ca.lasttime >= net->cc_mod.htcp_ca.minRTT) && in measure_achieved_throughput()
2030 (net->cc_mod.htcp_ca.minRTT > 0)) { in measure_achieved_throughput()
2031 uint32_t cur_Bi = net->cc_mod.htcp_ca.bytecount/net->mtu*hz/(now - net->cc_mod.htcp_ca.lasttime); in measure_achieved_throughput()
2033 if (htcp_ccount(&net->cc_mod.htcp_ca) <= 3) { in measure_achieved_throughput()
2035 net->cc_mod.htcp_ca.minB = net->cc_mod.htcp_ca.maxB = net->cc_mod.htcp_ca.Bi = cur_Bi; in measure_achieved_throughput()
2037 net->cc_mod.htcp_ca.Bi = (3*net->cc_mod.htcp_ca.Bi + cur_Bi)/4; in measure_achieved_throughput()
2038 if (net->cc_mod.htcp_ca.Bi > net->cc_mod.htcp_ca.maxB) in measure_achieved_throughput()
2039 net->cc_mod.htcp_ca.maxB = net->cc_mod.htcp_ca.Bi; in measure_achieved_throughput()
2040 if (net->cc_mod.htcp_ca.minB > net->cc_mod.htcp_ca.maxB) in measure_achieved_throughput()
2041 net->cc_mod.htcp_ca.minB = net->cc_mod.htcp_ca.maxB; in measure_achieved_throughput()
2043 net->cc_mod.htcp_ca.bytecount = 0; in measure_achieved_throughput()
2044 net->cc_mod.htcp_ca.lasttime = now; in measure_achieved_throughput()
2111 uint32_t minRTT = net->cc_mod.htcp_ca.minRTT; in htcp_param_update()
2112 uint32_t maxRTT = net->cc_mod.htcp_ca.maxRTT; in htcp_param_update()
2114 htcp_beta_update(&net->cc_mod.htcp_ca, minRTT, maxRTT); in htcp_param_update()
2115 htcp_alpha_update(&net->cc_mod.htcp_ca); in htcp_param_update()
2119 net->cc_mod.htcp_ca.maxRTT = minRTT + ((maxRTT-minRTT)*95)/100; in htcp_param_update()
2126 return (max(((net->cwnd/net->mtu * net->cc_mod.htcp_ca.beta) >> 7)*net->mtu, 2U*net->mtu)); in htcp_recalc_ssthresh()
2169 …if (((net->partial_bytes_acked/net->mtu * net->cc_mod.htcp_ca.alpha) >> 7)*net->mtu >= net->cwnd) { in htcp_cong_avoid()
2177 htcp_alpha_update(&net->cc_mod.htcp_ca); in htcp_cong_avoid()
2190 net->cc_mod.htcp_ca.bytes_acked = net->mtu; in htcp_cong_avoid()
2206 memset(&net->cc_mod.htcp_ca, 0, sizeof(struct htcp)); in htcp_init()
2207 net->cc_mod.htcp_ca.alpha = ALPHA_BASE; in htcp_init()
2208 net->cc_mod.htcp_ca.beta = BETA_MIN; in htcp_init()
2209 net->cc_mod.htcp_ca.bytes_acked = net->mtu; in htcp_init()
2210 net->cc_mod.htcp_ca.last_cong = sctp_get_tick_count(); in htcp_init()
2321 htcp_reset(&net->cc_mod.htcp_ca); in sctp_htcp_cwnd_update_after_fr()
2377 htcp_reset(&net->cc_mod.htcp_ca); in sctp_htcp_cwnd_update_after_timeout()
2395 htcp_reset(&net->cc_mod.htcp_ca); in sctp_htcp_cwnd_update_after_ecn_echo()