Page MenuHomeFreeBSD

tcp_usrreq: allocate tfo counter when required
ClosedPublic

Authored by pouria on Tue, Mar 24, 5:58 PM.
Tags
None
Referenced Files
F152704125: D56067.diff
Thu, Apr 16, 2:53 PM
Unknown Object (File)
Wed, Apr 15, 10:54 AM
Unknown Object (File)
Wed, Apr 15, 2:25 AM
Unknown Object (File)
Tue, Apr 14, 11:50 AM
Unknown Object (File)
Sun, Apr 12, 1:22 AM
Unknown Object (File)
Sat, Apr 11, 12:34 PM
Unknown Object (File)
Sat, Apr 11, 6:04 AM
Unknown Object (File)
Sat, Apr 11, 1:40 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 71696
Build 68579: arc lint + arc unit

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.Tue, Mar 24, 9:26 PM