Page MenuHomeFreeBSD

tcp: refactor tcp_autosndbuf() and associated sysctls
AcceptedPublic

Authored by glebius on Wed, Oct 14, 6:58 PM.
Tags
None
Referenced Files
F176007447: D60732.id189925.diff
Thu, Oct 15, 6:19 AM
F175994017: D60732.diff
Thu, Oct 15, 3:11 AM
F175993885: D60732.id189925.diff
Thu, Oct 15, 3:09 AM
F175991444: D60732.diff
Thu, Oct 15, 2:36 AM
F175977037: D60732.id189925.diff
Wed, Oct 14, 11:23 PM
F175977005: D60732.id.diff
Wed, Oct 14, 11:23 PM
F175974766: D60732.diff
Wed, Oct 14, 10:51 PM
F175965105: D60732.diff
Wed, Oct 14, 8:38 PM
Subscribers

Details

Reviewers
tuexen
gnn
Group Reviewers
transport
Summary

Rename tcp_sndbuf_autoscale() to tcp_autosndbuf(). This matches
complementary tcp_autorcvbuf() that was factored out as a separate
function a few months before tcp_sndbuf_autoscale() was. Move the large
comment to the header of the function. Use unsigned types for all sizing
sysctls and variables and use bool for the switching sysctl. Add a
comment above net.inet.tcp.sendbuf_auto_lowat (default to off) providing a
reference to its origins. Add DTrace probe tcp::send-autoresize,
complementary to the existing tcp::receive-autoresize.

Rack has its own function, just enable the DTrace probe there.

Diff Detail

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