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)
Mon, Sep 23, 3:07 PM
Unknown Object (File)
Wed, Sep 11, 3:45 PM
Unknown Object (File)
Sat, Sep 7, 5:24 PM
Unknown Object (File)
Aug 9 2024, 12:40 AM
Unknown Object (File)
Aug 9 2024, 12:40 AM
Unknown Object (File)
Aug 9 2024, 12:40 AM
Unknown Object (File)
Aug 4 2024, 4:35 AM
Unknown Object (File)
Jul 9 2024, 8: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.