Page MenuHomeFreeBSD

netlink: use domain specific send buffer
ClosedPublic

Authored by glebius on Nov 9 2023, 6:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 29, 7:00 AM
Unknown Object (File)
Thu, Jun 26, 11:26 AM
Unknown Object (File)
Tue, Jun 24, 6:09 PM
Unknown Object (File)
Mon, Jun 23, 6:28 PM
Unknown Object (File)
Tue, Jun 10, 12:32 PM
Unknown Object (File)
Jun 2 2025, 4:56 AM
Unknown Object (File)
May 19 2025, 3:41 PM
Unknown Object (File)
May 14 2025, 9:40 AM
Subscribers

Details

Summary

Instead of using generic socket code, create Netlink specific socket
buffer. It is a simple TAILQ of writes that came from userland. This
saves us one memory allocation that could fail and one memory copy.

Diff Detail

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

Event Timeline

melifaro added inline comments.
sys/netlink/netlink_io.c
237

any concerns on copying the previous approach? (grab all Q and the insert back if we hit the limit)?

This revision is now accepted and ready to land.Dec 26 2023, 6:48 PM
This revision was automatically updated to reflect the committed changes.