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)
Mon, Jan 12, 10:32 AM
Unknown Object (File)
Sat, Jan 10, 3:25 PM
Unknown Object (File)
Dec 20 2025, 6:22 AM
Unknown Object (File)
Dec 16 2025, 4:32 PM
Unknown Object (File)
Dec 15 2025, 10:45 PM
Unknown Object (File)
Dec 4 2025, 5:39 AM
Unknown Object (File)
Dec 3 2025, 4:13 AM
Unknown Object (File)
Nov 29 2025, 6: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.