Lines Matching refs:vegas

73 	struct vegas *vegas = inet_csk_ca(sk);  in vegas_enable()  local
76 vegas->doing_vegas_now = 1; in vegas_enable()
79 vegas->beg_snd_nxt = tp->snd_nxt; in vegas_enable()
81 vegas->cntRTT = 0; in vegas_enable()
82 vegas->minRTT = 0x7fffffff; in vegas_enable()
88 struct vegas *vegas = inet_csk_ca(sk); in vegas_disable() local
90 vegas->doing_vegas_now = 0; in vegas_disable()
95 struct vegas *vegas = inet_csk_ca(sk); in tcp_vegas_init() local
97 vegas->baseRTT = 0x7fffffff; in tcp_vegas_init()
112 struct vegas *vegas = inet_csk_ca(sk); in tcp_vegas_pkts_acked() local
122 if (vrtt < vegas->baseRTT) in tcp_vegas_pkts_acked()
123 vegas->baseRTT = vrtt; in tcp_vegas_pkts_acked()
128 vegas->minRTT = min(vegas->minRTT, vrtt); in tcp_vegas_pkts_acked()
129 vegas->cntRTT++; in tcp_vegas_pkts_acked()
167 struct vegas *vegas = inet_csk_ca(sk); in tcp_vegas_cong_avoid() local
169 if (!vegas->doing_vegas_now) { in tcp_vegas_cong_avoid()
174 if (after(ack, vegas->beg_snd_nxt)) { in tcp_vegas_cong_avoid()
180 vegas->beg_snd_nxt = tp->snd_nxt; in tcp_vegas_cong_avoid()
191 if (vegas->cntRTT <= 2) { in tcp_vegas_cong_avoid()
211 rtt = vegas->minRTT; in tcp_vegas_cong_avoid()
219 target_cwnd = (u64)tp->snd_cwnd * vegas->baseRTT; in tcp_vegas_cong_avoid()
226 diff = tp->snd_cwnd * (rtt-vegas->baseRTT) / vegas->baseRTT; in tcp_vegas_cong_avoid()
280 vegas->cntRTT = 0; in tcp_vegas_cong_avoid()
281 vegas->minRTT = 0x7fffffff; in tcp_vegas_cong_avoid()
292 const struct vegas *ca = inet_csk_ca(sk); in tcp_vegas_get_info()
295 info->vegas.tcpv_enabled = ca->doing_vegas_now, in tcp_vegas_get_info()
296 info->vegas.tcpv_rttcnt = ca->cntRTT, in tcp_vegas_get_info()
297 info->vegas.tcpv_rtt = ca->baseRTT, in tcp_vegas_get_info()
298 info->vegas.tcpv_minrtt = ca->minRTT, in tcp_vegas_get_info()
323 BUILD_BUG_ON(sizeof(struct vegas) > ICSK_CA_PRIV_SIZE); in tcp_vegas_register()