/freebsd-12-stable/sys/netinet/cc/ |
H A D | cc_htcp.c | 206 CCV(ccv, snd_cwnd) <= CCV(ccv, snd_ssthresh) || 216 CCV(ccv, snd_cwnd) <= CCV(ccv, snd_ssthresh)) 221 CCV(ccv, snd_cwnd) += htcp_data->alpha * 230 CCV(ccv, snd_cwnd) += (((htcp_data->alpha << 231 HTCP_SHIFT) / (CCV(ccv, snd_cwnd) / 293 htcp_data->prev_cwnd = CCV(ccv, snd_cwnd); 308 CCV(ccv, snd_cwnd) = CCV(ccv, snd_ssthresh); 310 htcp_data->prev_cwnd = CCV(ccv, snd_cwnd); 317 CCV(ccv, snd_cwnd)) / 2 / mss, 319 CCV(ccv, snd_cwnd) [all...] |
H A D | cc_newreno.c | 136 u_int cw = CCV(ccv, snd_cwnd); 194 CCV(ccv, snd_cwnd) = min(cw + incr, 228 CCV(ccv, snd_cwnd)-(CCV(ccv, snd_cwnd)>>2)); 230 CCV(ccv, snd_cwnd) = min(rw, CCV(ccv, snd_cwnd)); 243 cwin = CCV(ccv, snd_cwnd); 283 CCV(ccv, snd_cwnd) = cwin; 289 CCV(ccv, snd_cwnd)) / 2 / mss, 291 CCV(ccv, snd_cwnd) [all...] |
H A D | cc_cubic.c | 149 if (CCV(ccv, snd_cwnd) <= CCV(ccv, snd_ssthresh) || 159 cubic_data->max_cwnd = CCV(ccv, snd_cwnd); 199 if (CCV(ccv, snd_cwnd) < w_tf) 200 CCV(ccv, snd_cwnd) = ulmin(w_tf, INT_MAX); 201 } else if (CCV(ccv, snd_cwnd) < w_cubic_next) { 205 * Only update snd_cwnd, if it doesn't shrink. 207 CCV(ccv, snd_cwnd) = ulmin(w_cubic_next, 219 cubic_data->max_cwnd < CCV(ccv, snd_cwnd)) { 220 cubic_data->max_cwnd = CCV(ccv, snd_cwnd); 243 cubic_data->max_cwnd = ulmax(cubic_data->max_cwnd, CCV(ccv, snd_cwnd)); [all...] |
H A D | cc_vegas.c | 143 if (CCV(ccv, snd_cwnd) <= 150 CCV(ccv, snd_cwnd) = 151 min(CCV(ccv, snd_cwnd) + 210 CCV(ccv, snd_cwnd) = max(2 * CCV(ccv, t_maxseg), 211 CCV(ccv, snd_cwnd) - CCV(ccv, t_maxseg)); 212 if (CCV(ccv, snd_cwnd) < CCV(ccv, snd_ssthresh)) 214 CCV(ccv, snd_ssthresh) = CCV(ccv, snd_cwnd); 224 (CCV(ccv, snd_cwnd) < CCV(ccv, snd_ssthresh)) ? 1 : 0;
|
H A D | cc_chd.c | 147 win = min(CCV(ccv, snd_wnd), CCV(ccv, snd_cwnd)) / CCV(ccv, t_maxseg); 193 if (CCV(ccv, snd_cwnd) <= CCV(ccv, snd_ssthresh)) { 225 CCV(ccv,snd_cwnd) = min(CCV(ccv, snd_cwnd) + incr, 283 chd_data->shadow_w = max(CCV(ccv, snd_cwnd), 340 CCV(ccv, snd_cwnd) = CCV(ccv, snd_ssthresh); 356 CCV(ccv, snd_cwnd) = max(CCV(ccv, snd_cwnd), 365 CCV(ccv, snd_ssthresh) = CCV(ccv, snd_cwnd); 391 * Initialise the shadow_cwnd to be equal to snd_cwnd i [all...] |
H A D | cc_cdg.c | 328 cdg_data->shadow_w = CCV(ccv, snd_cwnd); 415 if (CCV(ccv, snd_cwnd) <= CCV(ccv, snd_ssthresh)) { 441 CCV(ccv, snd_cwnd) = ulmin(CCV(ccv, snd_cwnd) + incr, 453 CCV(ccv, snd_cwnd), V_cdg_beta_delay); 454 CCV(ccv, snd_cwnd) = CCV(ccv, snd_ssthresh); 466 CCV(ccv, snd_ssthresh) = CCV(ccv, snd_cwnd); 479 cdg_window_decrease(ccv, CCV(ccv, snd_cwnd), 582 slowstart = (CCV(ccv, snd_cwnd) <= CCV(ccv, snd_ssthresh)); 661 cdg_data->shadow_w = ulmax(CCV(ccv, snd_cwnd), [all...] |
H A D | cc_dctcp.c | 237 cwin = CCV(ccv, snd_cwnd); 261 * Save current snd_cwnd when the host encounters both 279 CCV(ccv, snd_cwnd) = CCV(ccv, snd_ssthresh); 286 CCV(ccv, snd_cwnd)) / 2 / mss, 288 CCV(ccv, snd_cwnd) = mss;
|
/freebsd-12-stable/cddl/lib/libdtrace/ |
H A D | siftr.d | 50 uint64_t snd_cwnd; 80 snd_cwnd = p == NULL ? 0 : p->snd_cwnd;
|
H A D | tcp.d | 243 tcps_cwnd = p == NULL ? -1 : p->snd_cwnd;
|
/freebsd-12-stable/sys/netinet/ |
H A D | tcp_input.c | 305 if (tp->snd_cwnd <= tp->snd_wnd) 311 if (tp->snd_cwnd > tp->snd_ssthresh) { 313 if (tp->t_bytes_acked >= tp->snd_cwnd) { 314 tp->t_bytes_acked -= tp->snd_cwnd; 382 if (tp->snd_cwnd == 1) 383 tp->snd_cwnd = maxseg; /* SYN(-ACK) lost */ 385 tp->snd_cwnd = min(V_tcp_initcwnd_segments * maxseg, 388 tp->snd_cwnd = min(4 * maxseg, max(2 * maxseg, 4380)); 392 tp->snd_cwnd = 2 * maxseg; 394 tp->snd_cwnd [all...] |
H A D | siftr.c | 192 u_long snd_cwnd; member in struct:pkt_node 482 pkt_node->snd_cwnd, 533 pkt_node->snd_cwnd, 786 pn->snd_cwnd = tp->snd_cwnd;
|
H A D | tcp_sack.c | 780 * simple for now. When a partial ack is received, force snd_cwnd to a value 798 tp->snd_cwnd = (tp->sackhint.sack_bytes_rexmit + 800 if (tp->snd_cwnd > tp->snd_ssthresh) 801 tp->snd_cwnd = tp->snd_ssthresh;
|
H A D | tcp_output.c | 272 sendwin = min(tp->snd_wnd, tp->snd_cwnd); 278 * If we retransmit in fast recovery mode, decrement snd_cwnd, since 280 * now, and we previously incremented snd_cwnd in tcp_input(). 294 imax(min(tp->snd_wnd, tp->snd_cwnd) - sack_bytes_rxmt, 0); 410 cwin = tp->snd_cwnd - 1589 tp->snd_cwnd = tp->t_maxseg;
|
H A D | tcp_timer.c | 644 tp->snd_cwnd = 1; 655 tp->snd_cwnd_prev = tp->snd_cwnd;
|
H A D | tcp_subr.c | 1683 tp->snd_cwnd = TCP_MAXWIN << TCP_MAX_WINSHIFT; 1892 metrics.rmx_cwnd = tp->snd_cwnd; 3258 xt->t_snd_cwnd = tp->snd_cwnd;
|
H A D | tcp_var.h | 115 uint32_t snd_cwnd; /* congestion-controlled window */ member in struct:tcpcb 146 uint32_t snd_ssthresh; /* snd_cwnd size threshold for
|
H A D | tcp_usrreq.c | 1618 ti->tcpi_snd_cwnd = tp->snd_cwnd; 2694 db_printf("snd_wnd: %u snd_cwnd: %u\n", 2695 tp->snd_wnd, tp->snd_cwnd);
|
H A D | tcp_log_buf.c | 1482 COPY_STAT(snd_cwnd);
|
H A D | tcp_syncache.c | 958 tp->snd_cwnd = 1;
|
/freebsd-12-stable/share/dtrace/ |
H A D | siftr | 42 printf("snd_cwnd %d snd_wnd %d rcv_wnd %d snd_bwnd %d snd_ssthresh %d\n", 43 args[0]->snd_cwnd,
|
/freebsd-12-stable/sys/netinet/tcp_stacks/ |
H A D | rack.c | 1284 if (tp->snd_cwnd <= tp->snd_wnd) 1292 ((int32_t) tp->snd_cwnd) - tp->snd_wnd); 1320 if (tp->snd_cwnd > tp->snd_ssthresh) { 1322 if (tp->t_bytes_acked >= tp->snd_cwnd) { 1323 tp->t_bytes_acked -= tp->snd_cwnd; 1337 stats_voi_update_abs_ulong(tp->t_stats, VOI_TCP_LCWIN, tp->snd_cwnd); 1339 if (rack->r_ctl.rc_rack_largest_cwnd < tp->snd_cwnd) { 1340 rack->r_ctl.rc_rack_largest_cwnd = tp->snd_cwnd; 1343 if (tp->t_peakrate_thr && tp->snd_cwnd > tp->t_peakrate_thr) { 1344 tp->snd_cwnd [all...] |
/freebsd-12-stable/sys/netinet/khelp/ |
H A D | h_ertt.c | 166 e_t->marked_snd_cwnd = tp->snd_cwnd;
|