Set ssthresh appropriately on RTO. This change was accidentally not ported from

the pre modular CC stack.

Sponsored by:	FreeBSD Foundation
Submitted by:	David Hayes <dahayes at swin edu au>
MFC after:	9 weeks
X-MFC with:	r215166
This commit is contained in:
Lawrence Stewart 2010-12-02 01:01:37 +00:00
parent b5af1b88a5
commit 6157935fa5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216103

View file

@ -378,6 +378,8 @@ cc_cong_signal(struct tcpcb *tp, struct tcphdr *th, uint32_t type)
tp->t_dupacks = 0; tp->t_dupacks = 0;
tp->t_bytes_acked = 0; tp->t_bytes_acked = 0;
EXIT_RECOVERY(tp->t_flags); EXIT_RECOVERY(tp->t_flags);
tp->snd_ssthresh = max(2, min(tp->snd_wnd, tp->snd_cwnd) / 2 /
tp->t_maxseg) * tp->t_maxseg;
tp->snd_cwnd = tp->t_maxseg; tp->snd_cwnd = tp->t_maxseg;
break; break;
case CC_RTO_ERR: case CC_RTO_ERR: