Page MenuHomeFreeBSD

tcp_usrreq: allocate tfo counter when required
ClosedPublic

Authored by pouria on Mar 24 2026, 5:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 4, 3:34 AM
Unknown Object (File)
Sun, Oct 4, 1:46 AM
Unknown Object (File)
Sun, Oct 4, 12:31 AM
Unknown Object (File)
Sun, Oct 4, 12:28 AM
Unknown Object (File)
Sun, Oct 4, 12:04 AM
Unknown Object (File)
Sat, Oct 3, 10:59 AM
Unknown Object (File)
Sat, Oct 3, 6:09 AM
Unknown Object (File)
Fri, Oct 2, 11:22 PM
Subscribers

Details

Summary

During tcp_usr_listen, only allocate tfo when required.

Test Plan

Run network tests:

kyua test -k /usr/tests/Kyuafile sys/netinet

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Do the same for tcp6_usr_listen()

sys/netinet/tcp_usrreq.c
466–468

You can now use an else clause here.

pouria marked an inline comment as done.

Address @tuexen comment.

This revision is now accepted and ready to land.Mar 24 2026, 9:26 PM