mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
tcp: Add CTLFLAG_VNET flag to some sysctls
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 change does not have any impact on reading the two sysctls, but
`sysctl -ANV net.inet.tcp.hostcache` will report them correctly.
Reviewed by: tuexen, #transport, #network
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D52693
(cherry picked from commit b1f96169cfb50a7b65aee115b2c9ad2f00797bbf)
(cherry picked from commit 032918dfd1)
This commit is contained in:
parent
08f2364212
commit
3e81e4d709
1 changed files with 2 additions and 2 deletions
|
|
@ -193,12 +193,12 @@ SYSCTL_INT(_net_inet_tcp_hostcache, OID_AUTO, purge, CTLFLAG_VNET | CTLFLAG_RW,
|
|||
"Expire all entries on next purge run");
|
||||
|
||||
SYSCTL_PROC(_net_inet_tcp_hostcache, OID_AUTO, list,
|
||||
CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_MPSAFE,
|
||||
CTLFLAG_VNET | CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_MPSAFE,
|
||||
0, 0, sysctl_tcp_hc_list, "A",
|
||||
"List of all hostcache entries");
|
||||
|
||||
SYSCTL_PROC(_net_inet_tcp_hostcache, OID_AUTO, histo,
|
||||
CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_MPSAFE,
|
||||
CTLFLAG_VNET | CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_MPSAFE,
|
||||
0, 0, sysctl_tcp_hc_histo, "A",
|
||||
"Print a histogram of hostcache hashbucket utilization");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue