Page MenuHomeFreeBSD

tcp: properly initialize LRD while accepting session in syncache
ClosedPublic

Authored by rscheff on Dec 1 2023, 10:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 12, 8:37 AM
Unknown Object (File)
Mar 17 2025, 2:01 AM
Unknown Object (File)
Mar 8 2025, 7:23 AM
Unknown Object (File)
Jan 30 2025, 12:34 AM
Unknown Object (File)
Jan 24 2025, 7:29 AM
Unknown Object (File)
Jan 23 2025, 4:31 PM
Unknown Object (File)
Jan 23 2025, 6:06 AM
Unknown Object (File)
Jan 23 2025, 12:00 AM
Subscribers

Details

Summary

After the recent LRD related changes, I noted that accept()ed
sessions would not honor the per-session TF_LRD flag.

Initialize this not only in tcp_newtcpcb, but also in syncache_socket.

Test Plan

drop a data segment and the retransmission on a SACK session,
verify that another retransmission happens well before the
retransmission timeout.

MFC: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 54751
Build 51640: arc lint + arc unit

Event Timeline

sys/netinet/tcp_syncache.c
955–956

Alternatively, the TF_LRD flag could be inherited from the listen socket here with (TF_LRD|TF_NOPUSH|TF_NODELAY)

sys/netinet/tcp_syncache.c
955–956

Inheriting is what I would prefer.

  • inherit LRD setting from listening socket
This revision is now accepted and ready to land.Dec 2 2023, 11:13 AM