Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_input.c
Show First 20 Lines • Show All 343 Lines • ▼ Show 20 Lines | if ((tp->t_flags & TF_GPUTINPROG) && | ||||
VOI_TCP_GPUT_ND, | VOI_TCP_GPUT_ND, | ||||
((gput - tp->t_stats_gput_prev) * 100) / | ((gput - tp->t_stats_gput_prev) * 100) / | ||||
tp->t_stats_gput_prev); | tp->t_stats_gput_prev); | ||||
tp->t_flags &= ~TF_GPUTINPROG; | tp->t_flags &= ~TF_GPUTINPROG; | ||||
tp->t_stats_gput_prev = gput; | tp->t_stats_gput_prev = gput; | ||||
} | } | ||||
#endif /* STATS */ | #endif /* STATS */ | ||||
if (tp->snd_cwnd > tp->snd_ssthresh) { | if (tp->snd_cwnd > tp->snd_ssthresh) { | ||||
tp->t_bytes_acked += min(tp->ccv->bytes_this_ack, | tp->t_bytes_acked += tp->ccv->bytes_this_ack; | ||||
nsegs * V_tcp_abc_l_var * tcp_maxseg(tp)); | |||||
if (tp->t_bytes_acked >= tp->snd_cwnd) { | if (tp->t_bytes_acked >= tp->snd_cwnd) { | ||||
tp->t_bytes_acked -= tp->snd_cwnd; | tp->t_bytes_acked -= tp->snd_cwnd; | ||||
tp->ccv->flags |= CCF_ABC_SENTAWND; | tp->ccv->flags |= CCF_ABC_SENTAWND; | ||||
} | } | ||||
} else { | } else { | ||||
tp->ccv->flags &= ~CCF_ABC_SENTAWND; | tp->ccv->flags &= ~CCF_ABC_SENTAWND; | ||||
tp->t_bytes_acked = 0; | tp->t_bytes_acked = 0; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 3,532 Lines • Show Last 20 Lines |