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 7,719 Lines • ▼ Show 20 Lines | if (tp->t_srtt != 0) { | ||||
* at 3*rtt). | * at 3*rtt). | ||||
*/ | */ | ||||
tp->t_srtt = rtt; | tp->t_srtt = rtt; | ||||
tp->t_rttvar = rtt >> 1; | tp->t_rttvar = rtt >> 1; | ||||
tp->t_rttbest = tp->t_srtt + tp->t_rttvar; | tp->t_rttbest = tp->t_srtt + tp->t_rttvar; | ||||
} | } | ||||
rack->rc_srtt_measure_made = 1; | rack->rc_srtt_measure_made = 1; | ||||
KMOD_TCPSTAT_INC(tcps_rttupdated); | KMOD_TCPSTAT_INC(tcps_rttupdated); | ||||
if (tp->t_rttupdated < UTYPE_MAX(tp->t_rttupdated)) | |||||
tp->t_rttupdated++; | tp->t_rttupdated++; | ||||
#ifdef STATS | #ifdef STATS | ||||
if (rack_stats_gets_ms_rtt == 0) { | if (rack_stats_gets_ms_rtt == 0) { | ||||
/* Send in the microsecond rtt used for rxt timeout purposes */ | /* Send in the microsecond rtt used for rxt timeout purposes */ | ||||
stats_voi_update_abs_u32(tp->t_stats, VOI_TCP_RTT, imax(0, rtt)); | stats_voi_update_abs_u32(tp->t_stats, VOI_TCP_RTT, imax(0, rtt)); | ||||
} else if (rack_stats_gets_ms_rtt == 1) { | } else if (rack_stats_gets_ms_rtt == 1) { | ||||
/* Send in the millisecond rtt used for rxt timeout purposes */ | /* Send in the millisecond rtt used for rxt timeout purposes */ | ||||
int32_t ms_rtt; | int32_t ms_rtt; | ||||
▲ Show 20 Lines • Show All 13,212 Lines • Show Last 20 Lines |