svn commit: r216103 - head/sys/netinet
Lawrence Stewart
lstewart at FreeBSD.org
Thu Dec 2 01:01:37 UTC 2010
Author: lstewart
Date: Thu Dec 2 01:01:37 2010
New Revision: 216103
URL: http://svn.freebsd.org/changeset/base/216103
Log:
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
Modified:
head/sys/netinet/tcp_input.c
Modified: head/sys/netinet/tcp_input.c
==============================================================================
--- head/sys/netinet/tcp_input.c Thu Dec 2 00:49:02 2010 (r216102)
+++ head/sys/netinet/tcp_input.c Thu Dec 2 01:01:37 2010 (r216103)
@@ -378,6 +378,8 @@ cc_cong_signal(struct tcpcb *tp, struct
tp->t_dupacks = 0;
tp->t_bytes_acked = 0;
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;
break;
case CC_RTO_ERR:
More information about the svn-src-all
mailing list