svn commit: r220105 - head/sys/netinet
Weongyo Jeong
weongyo at FreeBSD.org
Mon Mar 28 19:03:57 UTC 2011
Author: weongyo
Date: Mon Mar 28 19:03:56 2011
New Revision: 220105
URL: http://svn.freebsd.org/changeset/base/220105
Log:
Covers values if (BYTES_THIS_ACK(tp, th) / tp->t_maxseg) value is from
2.0 to 3.0.
Reviewed by: lstewart
Modified:
head/sys/netinet/tcp_sack.c
Modified: head/sys/netinet/tcp_sack.c
==============================================================================
--- head/sys/netinet/tcp_sack.c Mon Mar 28 17:41:10 2011 (r220104)
+++ head/sys/netinet/tcp_sack.c Mon Mar 28 19:03:56 2011 (r220105)
@@ -577,7 +577,7 @@ tcp_sack_partialack(struct tcpcb *tp, st
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);
More information about the svn-src-head
mailing list