Covers values if (BYTES_THIS_ACK(tp, th) / tp->t_maxseg) value is from

2.0 to 3.0.

Reviewed by:	lstewart
This commit is contained in:
weongyo 2011-03-28 19:03:56 +00:00
parent 8dd663c1cb
commit 55ffee0ed1

View File

@ -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);