Lines Matching refs:ccv
89 static void vegas_ack_received(struct cc_var *ccv, ccsignal_t ack_type);
90 static void vegas_cb_destroy(struct cc_var *ccv);
91 static int vegas_cb_init(struct cc_var *ccv, void *ptr);
92 static void vegas_cong_signal(struct cc_var *ccv, ccsignal_t signal_type);
93 static void vegas_conn_init(struct cc_var *ccv);
127 vegas_ack_received(struct cc_var *ccv, ccsignal_t ack_type) in vegas_ack_received() argument
132 uint32_t mss = tcp_fixed_maxseg(ccv->tp); in vegas_ack_received()
134 e_t = khelp_get_osd(&CCV(ccv, t_osd), ertt_id); in vegas_ack_received()
135 vegas_data = ccv->cc_data; in vegas_ack_received()
146 if (CCV(ccv, snd_cwnd) <= in vegas_ack_received()
147 CCV(ccv, snd_ssthresh)) { in vegas_ack_received()
153 CCV(ccv, snd_cwnd) = in vegas_ack_received()
154 min(CCV(ccv, snd_cwnd) + mss, in vegas_ack_received()
155 TCP_MAXWIN << CCV(ccv, snd_scale)); in vegas_ack_received()
159 vegas_cong_signal(ccv, CC_VEGAS_RATE); in vegas_ack_received()
167 newreno_cc_ack_received(ccv, ack_type); in vegas_ack_received()
171 vegas_cb_destroy(struct cc_var *ccv) in vegas_cb_destroy() argument
173 free(ccv->cc_data, M_CC_MEM); in vegas_cb_destroy()
183 vegas_cb_init(struct cc_var *ccv, void *ptr) in vegas_cb_init() argument
187 INP_WLOCK_ASSERT(tptoinpcb(ccv->tp)); in vegas_cb_init()
196 ccv->cc_data = vegas_data; in vegas_cb_init()
206 vegas_cong_signal(struct cc_var *ccv, ccsignal_t signal_type) in vegas_cong_signal() argument
210 uint32_t mss = tcp_fixed_maxseg(ccv->tp); in vegas_cong_signal()
212 vegas_data = ccv->cc_data; in vegas_cong_signal()
214 if (IN_RECOVERY(CCV(ccv, t_flags))) in vegas_cong_signal()
221 if (!IN_RECOVERY(CCV(ccv, t_flags))) { in vegas_cong_signal()
222 CCV(ccv, snd_cwnd) = max(2 * mss, in vegas_cong_signal()
223 CCV(ccv, snd_cwnd) - mss); in vegas_cong_signal()
224 if (CCV(ccv, snd_cwnd) < CCV(ccv, snd_ssthresh)) in vegas_cong_signal()
226 CCV(ccv, snd_ssthresh) = CCV(ccv, snd_cwnd); in vegas_cong_signal()
231 newreno_cc_cong_signal(ccv, signal_type); in vegas_cong_signal()
235 if (IN_RECOVERY(CCV(ccv, t_flags)) && !presignalrecov) in vegas_cong_signal()
237 (CCV(ccv, snd_cwnd) < CCV(ccv, snd_ssthresh)) ? 1 : 0; in vegas_cong_signal()
241 vegas_conn_init(struct cc_var *ccv) in vegas_conn_init() argument
245 vegas_data = ccv->cc_data; in vegas_conn_init()