diff options
author | weongyo <weongyo@FreeBSD.org> | 2011-03-28 19:03:56 +0000 |
---|---|---|
committer | weongyo <weongyo@FreeBSD.org> | 2011-03-28 19:03:56 +0000 |
commit | 55ffee0ed1dddaabd36f936b297206f1fe608ad9 (patch) | |
tree | a9260cd7bcebc9ae40df0db64e5cce44c0fbda5a | |
parent | 8dd663c1cb578e5ad309cae4296ab3fe72d4e2c9 (diff) | |
download | FreeBSD-src-55ffee0ed1dddaabd36f936b297206f1fe608ad9.zip FreeBSD-src-55ffee0ed1dddaabd36f936b297206f1fe608ad9.tar.gz |
Covers values if (BYTES_THIS_ACK(tp, th) / tp->t_maxseg) value is from
2.0 to 3.0.
Reviewed by: lstewart
-rw-r--r-- | sys/netinet/tcp_sack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_sack.c b/sys/netinet/tcp_sack.c index 4134034..440bd64 100644 --- a/sys/netinet/tcp_sack.c +++ b/sys/netinet/tcp_sack.c @@ -577,7 +577,7 @@ tcp_sack_partialack(struct tcpcb *tp, struct tcphdr *th) tcp_timer_activate(tp, TT_REXMT, 0); tp->t_rtttime = 0; /* Send one or 2 segments based on how much new data was acked. */ - if ((BYTES_THIS_ACK(tp, th) / tp->t_maxseg) > 2) + if ((BYTES_THIS_ACK(tp, th) / tp->t_maxseg) >= 2) num_segs = 2; tp->snd_cwnd = (tp->sackhint.sack_bytes_rexmit + (tp->snd_nxt - tp->sack_newdata) + num_segs * tp->t_maxseg); |