]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
TCP Cubic: After leaving slowstart fix unintended cwnd jump.
authorRichard Scheffenegger <rscheff@FreeBSD.org>
Thu, 13 Aug 2020 16:38:51 +0000 (16:38 +0000)
committerRichard Scheffenegger <rscheff@FreeBSD.org>
Thu, 13 Aug 2020 16:38:51 +0000 (16:38 +0000)
commit2bb6dfabbe2b43e774a1964ba0e825f4c6af0589
treee253410439ec0602d0183da1a43c14fdcc606861
parentf359d6ebbcced08a13060c07168856ffe6c9f734
TCP Cubic: After leaving slowstart fix unintended cwnd jump.

Initializing K to zero in D23655 introduced a miscalculation,
where cwnd would suddenly jump to cwnd_max instead of gradually
increasing, after leaving slow-start.

Properly calculating K instead of resetting it to zero resolves
this issue. Also making sure, that cwnd is recalculated at the
earliest opportunity once slow-start is over.

Reported by: chengc_netapp.com
Reviewed by: chengc_netapp.com, tuexen (mentor), rgrimes (mentor)
Approved by: tuexen (mentor), rgrimes (mentor)
MFC after: 3 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D25746
sys/netinet/cc/cc_cubic.c