Lines Matching refs:yeah

30 struct yeah {  struct
44 struct yeah *yeah = inet_csk_ca(sk); in tcp_yeah_init() local
48 yeah->doing_reno_now = 0; in tcp_yeah_init()
49 yeah->lastQ = 0; in tcp_yeah_init()
51 yeah->reno_count = 2; in tcp_yeah_init()
61 struct yeah *yeah = inet_csk_ca(sk); in tcp_yeah_cong_avoid() local
72 if (!yeah->doing_reno_now) { in tcp_yeah_cong_avoid()
103 if (after(ack, yeah->vegas.beg_snd_nxt)) { in tcp_yeah_cong_avoid()
113 if (yeah->vegas.cntRTT > 2) { in tcp_yeah_cong_avoid()
128 rtt = yeah->vegas.minRTT; in tcp_yeah_cong_avoid()
134 bw *= rtt - yeah->vegas.baseRTT; in tcp_yeah_cong_avoid()
139 rtt - yeah->vegas.baseRTT > (yeah->vegas.baseRTT / TCP_YEAH_PHY)) { in tcp_yeah_cong_avoid()
141 tcp_snd_cwnd(tp) > yeah->reno_count) { in tcp_yeah_cong_avoid()
148 yeah->reno_count)); in tcp_yeah_cong_avoid()
153 if (yeah->reno_count <= 2) in tcp_yeah_cong_avoid()
154 yeah->reno_count = max(tcp_snd_cwnd(tp)>>1, 2U); in tcp_yeah_cong_avoid()
156 yeah->reno_count++; in tcp_yeah_cong_avoid()
158 yeah->doing_reno_now = min(yeah->doing_reno_now + 1, in tcp_yeah_cong_avoid()
161 yeah->fast_count++; in tcp_yeah_cong_avoid()
163 if (yeah->fast_count > TCP_YEAH_ZETA) { in tcp_yeah_cong_avoid()
164 yeah->reno_count = 2; in tcp_yeah_cong_avoid()
165 yeah->fast_count = 0; in tcp_yeah_cong_avoid()
168 yeah->doing_reno_now = 0; in tcp_yeah_cong_avoid()
171 yeah->lastQ = queue; in tcp_yeah_cong_avoid()
177 yeah->vegas.beg_snd_una = yeah->vegas.beg_snd_nxt; in tcp_yeah_cong_avoid()
178 yeah->vegas.beg_snd_nxt = tp->snd_nxt; in tcp_yeah_cong_avoid()
179 yeah->vegas.beg_snd_cwnd = tcp_snd_cwnd(tp); in tcp_yeah_cong_avoid()
182 yeah->vegas.cntRTT = 0; in tcp_yeah_cong_avoid()
183 yeah->vegas.minRTT = 0x7fffffff; in tcp_yeah_cong_avoid()
190 struct yeah *yeah = inet_csk_ca(sk); in tcp_yeah_ssthresh() local
193 if (yeah->doing_reno_now < TCP_YEAH_RHO) { in tcp_yeah_ssthresh()
194 reduction = yeah->lastQ; in tcp_yeah_ssthresh()
202 yeah->fast_count = 0; in tcp_yeah_ssthresh()
203 yeah->reno_count = max(yeah->reno_count>>1, 2U); in tcp_yeah_ssthresh()
224 BUILD_BUG_ON(sizeof(struct yeah) > ICSK_CA_PRIV_SIZE); in tcp_yeah_register()