HomeFreeBSD

tcp: Tidying up the conditionals for unwinding a spurious RTO

Description

tcp: Tidying up the conditionals for unwinding a spurious RTO

  • Use the semantically correct TSTMP_xx macro when comparing timestamps. (No functional change)
  • check for bad retransmits only when TSopt is present in ACK (don't assume there will be a valid TSopt in the TCP options struct)
  • exclude tsecr == 0, since that most likely indicates an invalid ts echo return (tsecr) value.

Reviewed By: tuexen, transport
MFC after: 3 days
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D34062

Details

Provenance
rscheffAuthored on Jan 27 2022, 5:59 PM
Reviewer
transport
Differential Revision
D34062: Tidying up all the conditionals, when a spurious RTO is unwound
Parents
rG68e623c3f0af: tcp: Rewind erraneous RTO only while performing RTO retransmissions
Branches
Unknown
Tags
Unknown