Page MenuHomeFreeBSD

tcp_usrreq: allocate tfo counter when required
ClosedPublic

Authored by pouria on Mar 24 2026, 5:58 PM.
Tags
None
Referenced Files
F174462428: D56067.id174245.diff
Sat, Oct 3, 10:59 AM
F174441827: D56067.id174243.diff
Sat, Oct 3, 6:09 AM
F174404674: D56067.id174243.diff
Fri, Oct 2, 11:22 PM
Unknown Object (File)
Wed, Sep 30, 4:28 AM
Unknown Object (File)
Sat, Sep 19, 10:35 PM
Unknown Object (File)
Thu, Sep 10, 11:21 PM
Unknown Object (File)
Wed, Sep 9, 7:16 PM
Unknown Object (File)
Tue, Sep 8, 5:27 AM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 71694
Build 68577: arc lint + arc unit

Event Timeline

Do the same for tcp6_usr_listen()

sys/netinet/tcp_usrreq.c
469

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