summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorjayanth <jayanth@FreeBSD.org>2004-07-19 22:37:33 +0000
committerjayanth <jayanth@FreeBSD.org>2004-07-19 22:37:33 +0000
commit3781ade946da4c5bd02725bda2e5307f2dea4da0 (patch)
tree038def246ef992e218fd99c14fd51c6812a1e571 /sys/netinet/tcp_output.c
parent48943ed977a24332b387d2ab8146913385fb7567 (diff)
downloadFreeBSD-src-3781ade946da4c5bd02725bda2e5307f2dea4da0.zip
FreeBSD-src-3781ade946da4c5bd02725bda2e5307f2dea4da0.tar.gz
Let IN_FASTREOCOVERY macro decide if we are in recovery mode.
Nuke sackhole_limit for now. We need to add it back to limit the total number of sack blocks in the system.
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index eb614cc..f6afc18 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -200,7 +200,7 @@ again:
sack_rxmit = 0;
len = 0;
p = NULL;
- if (tp->sack_enable && SEQ_LT(tp->snd_una,tp->snd_recover) &&
+ if (tp->sack_enable && IN_FASTRECOVERY(tp) &&
(p = tcp_sack_output(tp))) {
KASSERT(tp->snd_cwnd >= 0,
("%s: CWIN is negative : %ld", __func__, tp->snd_cwnd));
OpenPOWER on IntegriCloud