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, Nov 17, 9:09 PM
Unknown Object (File)
Sun, Nov 17, 7:08 PM
Unknown Object (File)
Sat, Nov 16, 1:01 PM
Unknown Object (File)
Tue, Nov 5, 3:05 AM
Unknown Object (File)
Sun, Nov 3, 1:49 AM
Unknown Object (File)
Mon, Oct 21, 3:35 AM
Unknown Object (File)
Oct 14 2024, 7:54 PM
Unknown Object (File)
Oct 7 2024, 4:10 PM
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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

melifaro added inline comments.
sys/netlink/netlink_io.c
236–250

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.