]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: remove cache lookups after the evaluation phase
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 28 Jul 2020 15:57:20 +0000 (17:57 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 29 Jul 2020 21:40:58 +0000 (23:40 +0200)
commitac4b25b3ca045fbbed86773a91da52d9d7ee3091
tree57024629c8e76a4ce911c84a0a209c3332cef2ff
parent8eece29518257536711657c42047f14e22a7e8f2
src: remove cache lookups after the evaluation phase

This patch adds a new field to the cmd structure for elements to store a
reference to the set. This saves an extra lookup in the netlink bytecode
generation step.

This patch also allows to incrementally update during the evaluation
phase according to the command actions, which is required by the follow
up ("evaluate: remove table from cache on delete table") bugfix patch.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/expression.h
include/netlink.h
include/rule.h
src/evaluate.c
src/netlink.c
src/rule.c
src/segtree.c