]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Correctly set up the initial TCP congestion window in all cases,
authorrscheff <rscheff@FreeBSD.org>
Wed, 29 Apr 2020 21:48:52 +0000 (21:48 +0000)
committerrscheff <rscheff@FreeBSD.org>
Wed, 29 Apr 2020 21:48:52 +0000 (21:48 +0000)
commitf8d5656acd9388fd3e908cacf6f4082c5c249085
tree13d5058b8bfd057dbf97dc69e886bc95bf16cec6
parentbb85a467ceba3e56d02b4168d2cf18fba47392ef
Correctly set up the initial TCP congestion window in all cases,
by not including the SYN bit sequence space in cwnd related calculations.
Snd_und is adjusted explicitly in all cases, outside the cwnd update, instead.

This fixes an off-by-one conformance issue with regular TCP sessions not
using Appropriate Byte Counting (RFC3465), sending one more packet during
the initial window than expected.

PR: 235256
Reviewed by: tuexen (mentor), rgrimes (mentor)
Approved by: tuexen (mentor), rgrimes (mentor)
MFC after: 3 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D19000
sys/netinet/tcp_input.c
sys/netinet/tcp_stacks/bbr.c
sys/netinet/tcp_stacks/rack.c