MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rc_init_window

Function rc_init_window

freebsd/netinet/tcp_stacks/rack.c:1489–1503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1487RB_GENERATE(rack_rb_tree_head, rack_sendmap, r_next, rb_map_cmp);
1488
1489static uint32_t
1490rc_init_window(struct tcp_rack *rack)
1491{
1492 uint32_t win;
1493
1494 if (rack->rc_init_win == 0) {
1495 /*
1496 * Nothing set by the user, use the system stack
1497 * default.
1498 */
1499 return(tcp_compute_initwnd(tcp_maxseg(rack->rc_tp)));
1500 }
1501 win = ctf_fixed_maxseg(rack->rc_tp) * rack->rc_init_win;
1502 return(win);
1503}
1504
1505static uint64_t
1506rack_get_fixed_pacing_bw(struct tcp_rack *rack)

Callers 9

rack_cc_after_idleFunction · 0.85
rack_cc_conn_initFunction · 0.85
rack_need_set_testFunction · 0.85
rack_initFunction · 0.85
rack_set_sockoptFunction · 0.85

Calls 3

tcp_compute_initwndFunction · 0.85
tcp_maxsegFunction · 0.85
ctf_fixed_maxsegFunction · 0.85

Tested by

no test coverage detected