diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2023-01-04 10:31:56 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2023-01-04 10:31:56 +0000 |
commit | 4089d39270450cc7d8647a559fdc4644713815fa (patch) | |
tree | e0c61aa08c41352294d94825bfedeceb96f5093f /sys/net/pfvar.h | |
parent | d26581e575db29801212acef158559fdf23d02f5 (diff) |
move the pf_state_tree_id type from pfvar.h to pfvar_priv.h.
the pf_state_tree_id type is private to the kernel.
while here, move it from being an RB tree to an RBT tree. this saves
about 12k in pf.o on amd64.
ok sashan@
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r-- | sys/net/pfvar.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 0ac0adbdda1..f05e19436dc 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar.h,v 1.526 2023/01/04 02:00:49 dlg Exp $ */ +/* $OpenBSD: pfvar.h,v 1.527 2023/01/04 10:31:55 dlg Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1581,10 +1581,6 @@ RB_HEAD(pf_src_tree, pf_src_node); RB_PROTOTYPE(pf_src_tree, pf_src_node, entry, pf_src_compare); extern struct pf_src_tree tree_src_tracking; -RB_HEAD(pf_state_tree_id, pf_state); -RB_PROTOTYPE(pf_state_tree_id, pf_state, - entry_id, pf_state_compare_id); -extern struct pf_state_tree_id tree_id; extern struct pf_state_list pf_state_list; TAILQ_HEAD(pf_queuehead, pf_queuespec); |