Lines Matching refs:yeah
29 struct yeah { struct
45 struct yeah *yeah = inet_csk_ca(sk); in tcp_yeah_init() argument
49 yeah->doing_reno_now = 0; in tcp_yeah_init()
50 yeah->lastQ = 0; in tcp_yeah_init()
52 yeah->reno_count = 2; in tcp_yeah_init()
62 struct yeah *yeah = inet_csk_ca(sk); in tcp_yeah_pkts_acked() local
65 yeah->pkts_acked = pkts_acked; in tcp_yeah_pkts_acked()
73 struct yeah *yeah = inet_csk_ca(sk); in tcp_yeah_cong_avoid() local
81 else if (!yeah->doing_reno_now) { in tcp_yeah_cong_avoid()
84 tp->snd_cwnd_cnt += yeah->pkts_acked; in tcp_yeah_cong_avoid()
91 yeah->pkts_acked = 1; in tcp_yeah_cong_avoid()
120 if (after(ack, yeah->vegas.beg_snd_nxt)) { in tcp_yeah_cong_avoid()
130 if (yeah->vegas.cntRTT > 2) { in tcp_yeah_cong_avoid()
145 rtt = yeah->vegas.minRTT; in tcp_yeah_cong_avoid()
151 bw *= rtt - yeah->vegas.baseRTT; in tcp_yeah_cong_avoid()
156 rtt - yeah->vegas.baseRTT > (yeah->vegas.baseRTT / TCP_YEAH_PHY)) { in tcp_yeah_cong_avoid()
158 tp->snd_cwnd > yeah->reno_count) { in tcp_yeah_cong_avoid()
165 yeah->reno_count); in tcp_yeah_cong_avoid()
170 if (yeah->reno_count <= 2) in tcp_yeah_cong_avoid()
171 yeah->reno_count = max(tp->snd_cwnd>>1, 2U); in tcp_yeah_cong_avoid()
173 yeah->reno_count++; in tcp_yeah_cong_avoid()
175 yeah->doing_reno_now = min(yeah->doing_reno_now + 1, in tcp_yeah_cong_avoid()
178 yeah->fast_count++; in tcp_yeah_cong_avoid()
180 if (yeah->fast_count > TCP_YEAH_ZETA) { in tcp_yeah_cong_avoid()
181 yeah->reno_count = 2; in tcp_yeah_cong_avoid()
182 yeah->fast_count = 0; in tcp_yeah_cong_avoid()
185 yeah->doing_reno_now = 0; in tcp_yeah_cong_avoid()
188 yeah->lastQ = queue; in tcp_yeah_cong_avoid()
194 yeah->vegas.beg_snd_una = yeah->vegas.beg_snd_nxt; in tcp_yeah_cong_avoid()
195 yeah->vegas.beg_snd_nxt = tp->snd_nxt; in tcp_yeah_cong_avoid()
196 yeah->vegas.beg_snd_cwnd = tp->snd_cwnd; in tcp_yeah_cong_avoid()
199 yeah->vegas.cntRTT = 0; in tcp_yeah_cong_avoid()
200 yeah->vegas.minRTT = 0x7fffffff; in tcp_yeah_cong_avoid()
207 struct yeah *yeah = inet_csk_ca(sk); in tcp_yeah_ssthresh() local
210 if (yeah->doing_reno_now < TCP_YEAH_RHO) { in tcp_yeah_ssthresh()
211 reduction = yeah->lastQ; in tcp_yeah_ssthresh()
219 yeah->fast_count = 0; in tcp_yeah_ssthresh()
220 yeah->reno_count = max(yeah->reno_count>>1, 2U); in tcp_yeah_ssthresh()
240 BUG_ON(sizeof(struct yeah) > ICSK_CA_PRIV_SIZE); in tcp_yeah_register()