Set slow start threshold more accurately on loss to be flightsize/2 instead of
authorhiren <hiren@FreeBSD.org>
Tue, 1 Nov 2016 21:08:37 +0000 (21:08 +0000)
committerhiren <hiren@FreeBSD.org>
Tue, 1 Nov 2016 21:08:37 +0000 (21:08 +0000)
commit97041f78183889afa27687ead2c7d19e8db796ff
tree32c820b34d86098ffeb24aee7869dc67e005d869
parentd9c7d01f9ef1ff0f1a2b07f4a34028f7b25cd31a
Set slow start threshold more accurately on loss to be flightsize/2 instead of
cwnd/2 as recommended by RFC5681. (spotted by mmacy at nextbsd dot org)

Restore pre-r307901 behavior of aligning ssthresh/cwnd on mss boundary. (spotted
by slawa at zxy dot spb dot ru)

Tested by:     dim, Slawa <slawa at zxy dot spb dot ru>
MFC after:     1 month
X-MFC with:     r307901
Sponsored by:     Limelight Networks
Differential Revision: https://reviews.freebsd.org/D8349
sys/netinet/cc/cc_cdg.c
sys/netinet/cc/cc_chd.c
sys/netinet/cc/cc_dctcp.c
sys/netinet/cc/cc_htcp.c
sys/netinet/cc/cc_newreno.c
sys/netinet/tcp_input.c