HomeFreeBSD

tcp: In rack, we must only convert restored rtt when the hostcache does restoreā€¦

Description

tcp: In rack, we must only convert restored rtt when the hostcache does restore them.

Rack now after the previous commit is very careful to translate any
value in the hostcache for srtt/rttvar into its proper format. However
there is a snafu here in that if tp->srtt is 0 is the only time that
the HC will actually restore the srtt. We need to then only convert
the srtt restored when it is actually restored. We do this by making
sure it was zero before the call to cc_conn_init and it is non-zero
afterwards.

Reviewed by: Michael Tuexen
Sponsored by: Netflix Inc
Differential Revision: https://reviews.freebsd.org/D30213

(cherry picked from commit 4b86a24a76a4d58c1d870fcb2252b321f61cb3cc)

Details

Provenance
rrsAuthored on May 11 2021, 12:15 PM
tuexenCommitted on Jun 9 2021, 12:01 AM
Reviewer
tuexen
Differential Revision
D30213: Rack conversion in host cache needs to be conditional on the host cache being used.
Parents
rG87cf5dcc3335: tcp:Host cache and rack ending up with incorrect values.
Branches
Unknown
Tags
Unknown