Bug 282699

Summary: net.pf loader tunables not settable in 13.4
Product: Base System Reporter: Nick Reilly <nreilly>
Component: kernAssignee: freebsd-pf (Nobody) <pf>
Status: New ---    
Severity: Affects Only Me CC: kp, markj, zlei
Priority: ---    
Version: 13.4-RELEASE   
Hardware: Any   
OS: Any   

Description Nick Reilly 2024-11-11 19:45:10 UTC
13.4 vnet-ified the net.pf tunables states_hashsize and source_nodes_hashsize https://cgit.freebsd.org/src/commit/sys/netpfil/pf/pf.c?h=releng/13.4&id=428b8c8202654bddbfe871eb412e272c23f86802

Unfortunately 13.4 is missing the commits that let vnet-ified tunables be settable from the loader.conf. First part is https://cgit.freebsd.org/src/commit/sys/kern/?id=110113bc086f and it was then extended in https://cgit.freebsd.org/src/commit/sys/kern/kern_sysctl.c?id=cf7974fd9e554552989237c3d6bc736d672ac7c6

This means that the net.pf tunables that were settable in 13.3 are now not settable in 13.4.
Comment 1 Zhenlei Huang freebsd_committer freebsd_triage 2024-11-12 14:02:03 UTC
I think it is expected behavior ( right now ). Actually I have plan to rework `sysctl(9): Enable vnet sysctl variables to be loader tunable`, so it ( and related commits ) is not MFCed to stable branches ( including stable/14 ) yet.

I will post the rework in one / two weeks so there's plenty time to test before release 13.5 .