Lines Matching refs:yeah
30 struct yeah { struct
46 struct yeah *yeah = inet_csk_ca(sk); in tcp_yeah_init() local
50 yeah->doing_reno_now = 0; in tcp_yeah_init()
51 yeah->lastQ = 0; in tcp_yeah_init()
53 yeah->reno_count = 2; in tcp_yeah_init()
64 struct yeah *yeah = inet_csk_ca(sk); in tcp_yeah_pkts_acked() local
67 yeah->pkts_acked = sample->pkts_acked; in tcp_yeah_pkts_acked()
75 struct yeah *yeah = inet_csk_ca(sk); in tcp_yeah_cong_avoid() local
83 else if (!yeah->doing_reno_now) { in tcp_yeah_cong_avoid()
86 tp->snd_cwnd_cnt += yeah->pkts_acked; in tcp_yeah_cong_avoid()
93 yeah->pkts_acked = 1; in tcp_yeah_cong_avoid()
122 if (after(ack, yeah->vegas.beg_snd_nxt)) { in tcp_yeah_cong_avoid()
132 if (yeah->vegas.cntRTT > 2) { in tcp_yeah_cong_avoid()
147 rtt = yeah->vegas.minRTT; in tcp_yeah_cong_avoid()
153 bw *= rtt - yeah->vegas.baseRTT; in tcp_yeah_cong_avoid()
158 rtt - yeah->vegas.baseRTT > (yeah->vegas.baseRTT / TCP_YEAH_PHY)) { in tcp_yeah_cong_avoid()
160 tp->snd_cwnd > yeah->reno_count) { in tcp_yeah_cong_avoid()
167 yeah->reno_count); in tcp_yeah_cong_avoid()
172 if (yeah->reno_count <= 2) in tcp_yeah_cong_avoid()
173 yeah->reno_count = max(tp->snd_cwnd>>1, 2U); in tcp_yeah_cong_avoid()
175 yeah->reno_count++; in tcp_yeah_cong_avoid()
177 yeah->doing_reno_now = min(yeah->doing_reno_now + 1, in tcp_yeah_cong_avoid()
180 yeah->fast_count++; in tcp_yeah_cong_avoid()
182 if (yeah->fast_count > TCP_YEAH_ZETA) { in tcp_yeah_cong_avoid()
183 yeah->reno_count = 2; in tcp_yeah_cong_avoid()
184 yeah->fast_count = 0; in tcp_yeah_cong_avoid()
187 yeah->doing_reno_now = 0; in tcp_yeah_cong_avoid()
190 yeah->lastQ = queue; in tcp_yeah_cong_avoid()
196 yeah->vegas.beg_snd_una = yeah->vegas.beg_snd_nxt; in tcp_yeah_cong_avoid()
197 yeah->vegas.beg_snd_nxt = tp->snd_nxt; in tcp_yeah_cong_avoid()
198 yeah->vegas.beg_snd_cwnd = tp->snd_cwnd; in tcp_yeah_cong_avoid()
201 yeah->vegas.cntRTT = 0; in tcp_yeah_cong_avoid()
202 yeah->vegas.minRTT = 0x7fffffff; in tcp_yeah_cong_avoid()
209 struct yeah *yeah = inet_csk_ca(sk); in tcp_yeah_ssthresh() local
212 if (yeah->doing_reno_now < TCP_YEAH_RHO) { in tcp_yeah_ssthresh()
213 reduction = yeah->lastQ; in tcp_yeah_ssthresh()
221 yeah->fast_count = 0; in tcp_yeah_ssthresh()
222 yeah->reno_count = max(yeah->reno_count>>1, 2U); in tcp_yeah_ssthresh()
243 BUG_ON(sizeof(struct yeah) > ICSK_CA_PRIV_SIZE); in tcp_yeah_register()