HomeFreeBSD

Correctly set up the initial TCP congestion window

Description

Correctly set up the initial TCP congestion window
in all cases, by adjust snd_una right after the
connection initialization, to include the one byte
in sequence space occupied by the SYN bit.

This does not change the regular ACK processing,
while making the BYTES_THIS_ACK macro to work properly.

PR: 235256
Reviewed by: tuexen (mentor), rgrimes (mentor)
Approved by: tuexen (mentor), rgrimes (mentor)
MFC after: 2 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D19000

Details

Provenance
rscheffAuthored on
Reviewer
tuexen
Differential Revision
D19000: Avoid cwnd update for SYN sequence space
Parents
rS360142: MFC: r359679
Branches
Unknown
Tags
Unknown
Reverted By
rS360180: revert rS360143 - Correctly set up initial cwnd