Page MenuHomeFreeBSD

tcp: don't set flowid in tcp_input()
ClosedPublic

Authored by glebius on Nov 22 2025, 6:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 5, 5:00 AM
Unknown Object (File)
Thu, Mar 5, 3:24 AM
Unknown Object (File)
Tue, Mar 3, 6:03 PM
Unknown Object (File)
Tue, Mar 3, 3:12 PM
Unknown Object (File)
Tue, Mar 3, 7:46 AM
Unknown Object (File)
Sat, Feb 28, 6:21 AM
Unknown Object (File)
Feb 22 2026, 10:12 AM
Unknown Object (File)
Feb 21 2026, 11:25 PM

Details

Summary

With dd0e6bb996dc setting it always on connect(2) and syncache always
picking up the flowid from the incoming packet, any ESTABLISHED connection
shall have the flowid already set.

Diff Detail

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

Event Timeline

tuexen added a subscriber: tuexen.

Would it make sense to replace the code with a KASSERT, that ensures that the inp_flowtype is not M_HASHTYPE_NONE on non-listening socket.

This revision is now accepted and ready to land.Nov 23 2025, 9:00 AM
This revision was automatically updated to reflect the committed changes.