The following sysctl variables are actually loader tunables. Add sysctl
flag CTLFLAG_TUN to them so that sysctl -T will report them correctly.
- net.inet.sctp.tcbhashsize
- net.inet.sctp.pcbhashsize
- net.inet.sctp.chunkscale
While here, validate the loader tunables on vnet initialize, reset them to
theirs default, otherwise invalid kernel environment can cause kernel panic.
The loader tunable net.inet.sctp.tcbhashsize and net.inet.sctp.chunkscale are
used only when vnet initialize, thus it make no senses to make them writable tunables.
MFC after: 1 week