HomeFreeBSD

tcp: improve consistency of syncache_respond() failure handling

Description

tcp: improve consistency of syncache_respond() failure handling

When the initial sending of the SYN ACK segment using
syncache_respond() fails, it is handled as a permanent error.
To improve consistency, apply this policy in all cases, where
syncache_respond() is called. These include

  • timer based retransmissions of the SYN ACK
  • retransmitting a SYN ACK in response to a SYN retransmission
  • sending of challenge ACKs in response to received RST segments

In these cases, fall back to SYN cookies, if enabled.
While there, also improve consistency of the TCP stats counters.

Reviewed by: cc, glebius (earlier version)
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D46428

(cherry picked from commit ef438f7706be48f1cf7fd4c8a60329e1619cfe30)

Details

Provenance
tuexenAuthored on Sep 5 2024, 1:33 AM
Reviewer
cc
Differential Revision
D46428: tcp: improve consistency of syncache_respond() failure handling
Parents
rG3e8226cb8c83: tcp rack, bbr: improve handling of soft errors
Branches
Unknown
Tags
Unknown