Page MenuHomeFreeBSD

udp: slightly refactor udp_append()
ClosedPublic

Authored by glebius on Aug 26 2025, 5:09 PM.
Tags
None
Referenced Files
F175441198: D52171.id161329.diff
Sat, Oct 10, 9:36 PM
Unknown Object (File)
Sun, Oct 4, 4:35 PM
Unknown Object (File)
Sat, Oct 3, 1:10 PM
Unknown Object (File)
Thu, Oct 1, 11:16 AM
Unknown Object (File)
Sat, Sep 19, 1:50 PM
Unknown Object (File)
Fri, Sep 18, 2:56 PM
Unknown Object (File)
Wed, Sep 16, 3:53 AM
Unknown Object (File)
Mon, Sep 14, 4:42 AM
Subscribers

Details

Summary

Make it bool. Reword the comment, add note that mbuf is always consumed.
In case tunnel consumed the mbuf, don't INP_RUNLOCK(), behave just like
all the other normal exits from the function.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66546
Build 63429: arc lint + arc unit

Event Timeline

Michael had fixed this bug at Netflix several years ago, but we forgot to upstream that. Merging in FreeBSD, I found our code nicer, especially no extra INP_RUNLOCK(). Converting to bool and comment editing is my today's additions.

This revision is now accepted and ready to land.Aug 26 2025, 6:44 PM
This revision was automatically updated to reflect the committed changes.