HomeFreeBSD

sockbufs: add sbreserve_locked_limit() with custom maxsockbuf limit.

Description

sockbufs: add sbreserve_locked_limit() with custom maxsockbuf limit.

Protocols such as netlink may need a large socket receive buffer,
measured in tens of megabytes. This change allows netlink to
set larger socket buffers (given the privs are in place), without
requiring user to manuall bump maxsockbuf.

Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D36747

(cherry picked from commit 7b660faa9e30c15d3be9b2c44c3ca046a33331f4)

Details

Provenance
melifaroAuthored on Sep 27 2022, 1:52 PM
Reviewer
glebius
Differential Revision
D36747: sockbufs: add sbreserve_locked_limit() with custom maxsockbuf limit.
Parents
rGe04ee7d95ef6: libmd / md5: Add SHA-512/224.
Branches
Unknown
Tags
Unknown