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)
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
Unknown Object (File)
Oct 1 2024, 9:55 PM
Unknown Object (File)
Sep 30 2024, 2:28 AM
Unknown Object (File)
Sep 23 2024, 3:07 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.