summaryrefslogtreecommitdiffstats
path: root/sys/net/pfvar.h
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2014-04-27 09:05:34 +0000
committermm <mm@FreeBSD.org>2014-04-27 09:05:34 +0000
commit5b89692b00a51ee27c4f004b3c954b0b123bf551 (patch)
tree4057c670b23905e051d5000aca915b4be3d33852 /sys/net/pfvar.h
parent1e4589b921fdaa1b1d2fc6b6ed016f1e0a01cb8f (diff)
downloadFreeBSD-src-5b89692b00a51ee27c4f004b3c954b0b123bf551.zip
FreeBSD-src-5b89692b00a51ee27c4f004b3c954b0b123bf551.tar.gz
MFC r264689:
De-virtualize UMA zone pf_mtag_z and move to global initialization part. The m_tag struct does not know about vnet context and the pf_mtag_free() callback is called unaware of current vnet. This causes a panic. PR: kern/182964
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r--sys/net/pfvar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index b7fbf5f..0dc362a 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1531,6 +1531,8 @@ VNET_DECLARE(struct pf_rulequeue, pf_unlinked_rules);
#define V_pf_unlinked_rules VNET(pf_unlinked_rules)
void pf_initialize(void);
+void pf_mtag_initialize(void);
+void pf_mtag_cleanup(void);
void pf_cleanup(void);
struct pf_mtag *pf_get_mtag(struct mbuf *);
OpenPOWER on IntegriCloud