• Home
  • Raw
  • Download

Lines Matching refs:ca

59 	struct illinois *ca = inet_csk_ca(sk);  in rtt_reset()  local
61 ca->end_seq = tp->snd_nxt; in rtt_reset()
62 ca->cnt_rtt = 0; in rtt_reset()
63 ca->sum_rtt = 0; in rtt_reset()
70 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_init() local
72 ca->alpha = ALPHA_MAX; in tcp_illinois_init()
73 ca->beta = BETA_BASE; in tcp_illinois_init()
74 ca->base_rtt = 0x7fffffff; in tcp_illinois_init()
75 ca->max_rtt = 0; in tcp_illinois_init()
77 ca->acked = 0; in tcp_illinois_init()
78 ca->rtt_low = 0; in tcp_illinois_init()
79 ca->rtt_above = 0; in tcp_illinois_init()
87 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_acked() local
89 ca->acked = pkts_acked; in tcp_illinois_acked()
100 if (ca->base_rtt > rtt) in tcp_illinois_acked()
101 ca->base_rtt = rtt; in tcp_illinois_acked()
104 if (ca->max_rtt < rtt) in tcp_illinois_acked()
105 ca->max_rtt = rtt; in tcp_illinois_acked()
107 ++ca->cnt_rtt; in tcp_illinois_acked()
108 ca->sum_rtt += rtt; in tcp_illinois_acked()
112 static inline u32 max_delay(const struct illinois *ca) in max_delay() argument
114 return ca->max_rtt - ca->base_rtt; in max_delay()
118 static inline u32 avg_delay(const struct illinois *ca) in avg_delay() argument
120 u64 t = ca->sum_rtt; in avg_delay()
122 do_div(t, ca->cnt_rtt); in avg_delay()
123 return t - ca->base_rtt; in avg_delay()
138 static u32 alpha(struct illinois *ca, u32 da, u32 dm) in alpha() argument
144 if (!ca->rtt_above) in alpha()
150 if (++ca->rtt_low < theta) in alpha()
151 return ca->alpha; in alpha()
153 ca->rtt_low = 0; in alpha()
154 ca->rtt_above = 0; in alpha()
158 ca->rtt_above = 1; in alpha()
223 struct illinois *ca = inet_csk_ca(sk); in update_params() local
226 ca->alpha = ALPHA_BASE; in update_params()
227 ca->beta = BETA_BASE; in update_params()
228 } else if (ca->cnt_rtt > 0) { in update_params()
229 u32 dm = max_delay(ca); in update_params()
230 u32 da = avg_delay(ca); in update_params()
232 ca->alpha = alpha(ca, da, dm); in update_params()
233 ca->beta = beta(da, dm); in update_params()
244 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_state() local
247 ca->alpha = ALPHA_BASE; in tcp_illinois_state()
248 ca->beta = BETA_BASE; in tcp_illinois_state()
249 ca->rtt_low = 0; in tcp_illinois_state()
250 ca->rtt_above = 0; in tcp_illinois_state()
261 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_cong_avoid() local
263 if (after(ack, ca->end_seq)) in tcp_illinois_cong_avoid()
278 tp->snd_cwnd_cnt += ca->acked; in tcp_illinois_cong_avoid()
279 ca->acked = 1; in tcp_illinois_cong_avoid()
284 delta = (tp->snd_cwnd_cnt * ca->alpha) >> ALPHA_SHIFT; in tcp_illinois_cong_avoid()
296 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_ssthresh() local
299 return max(tp->snd_cwnd - ((tp->snd_cwnd * ca->beta) >> BETA_SHIFT), 2U); in tcp_illinois_ssthresh()
306 const struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_info() local
310 info->vegas.tcpv_rttcnt = ca->cnt_rtt; in tcp_illinois_info()
311 info->vegas.tcpv_minrtt = ca->base_rtt; in tcp_illinois_info()
315 u64 t = ca->sum_rtt; in tcp_illinois_info()