Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_stacks/rack.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 6,608 Lines • ▼ Show 20 Lines | rack_convert_rtts(struct tcpcb *tp) | ||||
RACK_TCPT_RANGESET(tp->t_rxtcur, RACK_REXMTVAL(tp), | RACK_TCPT_RANGESET(tp->t_rxtcur, RACK_REXMTVAL(tp), | ||||
rack_rto_min, rack_rto_max); | rack_rto_min, rack_rto_max); | ||||
} | } | ||||
static void | static void | ||||
rack_cc_conn_init(struct tcpcb *tp) | rack_cc_conn_init(struct tcpcb *tp) | ||||
{ | { | ||||
struct tcp_rack *rack; | struct tcp_rack *rack; | ||||
uint32_t srtt; | |||||
rack = (struct tcp_rack *)tp->t_fb_ptr; | rack = (struct tcp_rack *)tp->t_fb_ptr; | ||||
srtt = tp->t_srtt; | |||||
cc_conn_init(tp); | cc_conn_init(tp); | ||||
/* | /* | ||||
* Now convert to rack's internal format. | * Now convert to rack's internal format, | ||||
* if required. | |||||
*/ | */ | ||||
if ((srtt == 0) && (tp->t_srtt != 0)) | |||||
rack_convert_rtts(tp); | rack_convert_rtts(tp); | ||||
/* | /* | ||||
* We want a chance to stay in slowstart as | * We want a chance to stay in slowstart as | ||||
* we create a connection. TCP spec says that | * we create a connection. TCP spec says that | ||||
* initially ssthresh is infinite. For our | * initially ssthresh is infinite. For our | ||||
* purposes that is the snd_wnd. | * purposes that is the snd_wnd. | ||||
*/ | */ | ||||
if (tp->snd_ssthresh < tp->snd_wnd) { | if (tp->snd_ssthresh < tp->snd_wnd) { | ||||
tp->snd_ssthresh = tp->snd_wnd; | tp->snd_ssthresh = tp->snd_wnd; | ||||
▲ Show 20 Lines • Show All 13,321 Lines • Show Last 20 Lines |