Page MenuHomeFreeBSD

tcp: Add CTLFLAG_VNET flag to some sysctls
ClosedPublic

Authored by zlei on Tue, Sep 23, 3:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 4:22 AM
Unknown Object (File)
Fri, Oct 10, 3:08 AM
Unknown Object (File)
Fri, Oct 10, 3:08 AM
Unknown Object (File)
Fri, Oct 10, 3:08 AM
Unknown Object (File)
Thu, Oct 9, 10:14 PM
Unknown Object (File)
Thu, Oct 9, 8:03 PM
Unknown Object (File)
Mon, Oct 6, 10:07 PM
Unknown Object (File)
Thu, Oct 2, 5:41 PM

Details

Summary

The two sysctls net.inet.tcp.hostcache.list and net.inet.tcp.hostcache.histo
are readonly and are to operate hostcache of vnet jails. Add CTLFLAG_VNET
flag to them since they are per-vnet sysctls. This does not have any impact of
reading the two sysctls, but sysctl -ANV net.inet.tcp.hostcache will report them
correctly.

MFC after: 3 days

Test Plan
# sysctl -ANV net.inet.tcp.hostcache
net.inet.tcp.hostcache.purgenow
net.inet.tcp.hostcache.histo
net.inet.tcp.hostcache.list
net.inet.tcp.hostcache.purge
net.inet.tcp.hostcache.prune
net.inet.tcp.hostcache.expire
net.inet.tcp.hostcache.count
net.inet.tcp.hostcache.bucketlimit
net.inet.tcp.hostcache.hashsize
net.inet.tcp.hostcache.cachelimit
net.inet.tcp.hostcache.enable

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable