HomeFreeBSD

kernel linker: Eliminate unneeded vnet propagation

Description

kernel linker: Eliminate unneeded vnet propagation

The module preload happens before vnet0 creation, at this moment the vnet
list is empty thus invoking vnet_data_copy() during preload is a noop.

With recent change 110113bc086f, for dynamic module load, aka via kldload,
linker will do vnet propagation right after registering sysctls which
happens after module load, then previous propagation (during module load)
is redundant.

No functional change intended.

MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D39852

Details

Provenance
zleiAuthored on Sep 9 2023, 8:06 AM
Differential Revision
D39852: kernel linkers: Eliminate unneeded vnet propagation
Parents
rG110113bc086f: sysctl(9): Enable vnet sysctl variables to be loader tunable
Branches
Unknown
Tags
Unknown