Update pf(4) and pflog(4) to survive basic VNET testing, which includes
authorbz <bz@FreeBSD.org>
Thu, 23 Jun 2016 21:34:38 +0000 (21:34 +0000)
committerbz <bz@FreeBSD.org>
Thu, 23 Jun 2016 21:34:38 +0000 (21:34 +0000)
commit876cb9e01891afffc4be6f844e6a4b122d4a2bb9
treecd87cf00fc56635b3718d9d6336fac7424cc0be2
parent179026d7fde64374122b1e30a2be3b7c4d8ddb8a
Update pf(4) and pflog(4) to survive basic VNET testing, which includes
proper virtualisation, teardown, avoiding use-after-free, race conditions,
no longer creating a thread per VNET (which could easily be a couple of
thousand threads), gracefully ignoring global events (e.g., eventhandlers)
on teardown, clearing various globally cached pointers and checking
them before use.

Reviewed by: kp
Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D6924
sys/net/pfvar.h
sys/netpfil/pf/if_pflog.c
sys/netpfil/pf/pf.c
sys/netpfil/pf/pf_if.c
sys/netpfil/pf/pf_ioctl.c