summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2005-05-25 17:55:27 +0000
committerps <ps@FreeBSD.org>2005-05-25 17:55:27 +0000
commit8512119a50217a179f2ba29f583098be768a752b (patch)
treed50c228e7b10212ea26f326ecaefb851ec9d6cba /sys/netinet/tcp_input.c
parenta0ef9a2b74778fc9242828e3a012e02ddab4449d (diff)
downloadFreeBSD-src-8512119a50217a179f2ba29f583098be768a752b.zip
FreeBSD-src-8512119a50217a179f2ba29f583098be768a752b.tar.gz
This is conform with the terminology in
M.Mathis and J.Mahdavi, "Forward Acknowledgement: Refining TCP Congestion Control" SIGCOMM'96, August 1996. Submitted by: Noritoshi Demizu, Raja Mukerji
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index c3b562f..cbd4068 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1840,9 +1840,8 @@ trimthenstep6:
else if (++tp->t_dupacks > tcprexmtthresh ||
((tcp_do_newreno || tp->sack_enable) &&
IN_FASTRECOVERY(tp))) {
-
if (tp->sack_enable && IN_FASTRECOVERY(tp)) {
- int data_in_pipe;
+ int awnd;
/*
* Compute the amount of data in flight first.
@@ -1850,9 +1849,9 @@ trimthenstep6:
* we have less than 1/2 the original window's
* worth of data in flight.
*/
- data_in_pipe = (tp->snd_nxt - tp->rcv_lastsack) +
+ awnd = (tp->snd_nxt - tp->snd_fack) +
tp->sackhint.sack_bytes_rexmit;
- if (data_in_pipe < tp->snd_ssthresh) {
+ if (awnd < tp->snd_ssthresh) {
tp->snd_cwnd += tp->t_maxseg;
if (tp->snd_cwnd > tp->snd_ssthresh)
tp->snd_cwnd = tp->snd_ssthresh;
OpenPOWER on IntegriCloud