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
F102795141: D42874.diff
Sun, Nov 17, 7:19 AM
Unknown Object (File)
Mon, Oct 21, 5:06 AM
Unknown Object (File)
Mon, Oct 21, 5:05 AM
Unknown Object (File)
Mon, Oct 21, 5:05 AM
Unknown Object (File)
Mon, Oct 21, 5:05 AM
Unknown Object (File)
Mon, Oct 21, 4:27 AM
Unknown Object (File)
Sep 29 2024, 3:24 PM
Unknown Object (File)
Sep 28 2024, 10:08 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 Not Applicable
Unit
Tests Not Applicable

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