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

Details

Provenance
rrsAuthored on May 11 2021, 12:15 PM
Reviewer
tuexen
Differential Revision
D30213: Rack conversion in host cache needs to be conditional on the host cache being used.
Parents
rG0b103f72376b: mrouter: do not loopback packets unconditionally
Branches
Unknown
Tags
Unknown