Page MenuHomeFreeBSD

pf: Fix vnet initialisation
ClosedPublic

Authored by kp on May 3 2017, 8:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 29, 1:12 AM
Unknown Object (File)
Mar 16 2024, 6:10 AM
Unknown Object (File)
Jan 26 2024, 7:48 PM
Unknown Object (File)
Dec 22 2023, 11:07 PM
Unknown Object (File)
Dec 12 2023, 5:51 AM
Unknown Object (File)
Nov 8 2023, 9:36 PM
Unknown Object (File)
Oct 13 2023, 5:33 PM
Unknown Object (File)
Sep 4 2023, 5:55 AM
Subscribers

Details

Reviewers
zec
gnn
Group Reviewers
network
Commits
rS317907: pf: Fix vnet initialisation
Summary
When running the vnet init code (pf_load_vnet()) we used to iterate over
all vnets, marking them as unhooked.
This is incorrect and leads to panics if pf is unloaded, as the unload
code does not unregister the pfil hooks (because the vnet is marked as
unhooked).

There's no need or reason to touch other vnets during initialisation.
Their pf_load_vnet() function will be triggered, which handles all
required initialisation.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.May 4 2017, 8:10 AM
This revision was automatically updated to reflect the committed changes.