Stephen Hurd 500759395a Fix window update issue when scaling disabled
When the TCP window scale option is not used, and the window
opens up enough in one soreceive, a window update will not be sent.

For example, if recwin == 65535, so->so_rcv.sb_hiwat >= 262144, and
so->so_rcv.sb_hiwat <= 524272, the window update will never be sent.
This is because recwin and adv are clamped to TCP_MAXWIN << tp->rcv_scale,
and so will never be >= so->so_rcv.sb_hiwat / 4
or <= so->so_rcv.sb_hiwat / 8.

This patch ensures a window update is sent if the window opens by
TCP_MAXWIN << tp->rcv_scale, which should only happen when the window
size goes from zero to the max expressible.

This issue looks like it was introduced in r306769 when recwin was clamped
to TCP_MAXWIN << tp->rcv_scale.

MFC after:	1 week
Sponsored by:	Limelight Networks
Differential Revision:	https://reviews.freebsd.org/D18821
2019-01-15 17:40:19 +00:00
..
2018-07-11 14:54:56 +00:00
2018-05-29 12:32:08 +00:00
2018-07-01 08:37:07 +00:00
2018-07-01 08:37:07 +00:00
2018-11-22 20:49:41 +00:00
2018-09-18 10:53:07 +00:00
2018-05-19 05:56:21 +00:00
2018-11-22 20:49:41 +00:00
2018-07-31 22:56:03 +00:00