From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH nftables 0/4] optimization updates
Date: Wed, 26 Jan 2022 23:33:10 +0100 [thread overview]
Message-ID: <20220126223314.297735-1-pablo@netfilter.org> (raw)
nft -o/--optimize crashes with verdict maps due to insufficient checks
on the expression type for verdict statements.
This patchset extends -o/--optimize to merge two rules with the same
verdict maps side by side.
This also prepares for allowing to merge raw expressions in
concatenation which is not possible yet due to the use of integer type.
Pablo Neira Ayuso (4):
optimize: add __expr_cmp()
optimize: merge verdict maps with same lookup key
optimize: check for payload base and offset when searching for mergers
optimize: do not merge raw payload expressions
src/optimize.c | 210 +++++++++++++-----
.../optimizations/dumps/merge_vmaps.nft | 12 +
.../shell/testcases/optimizations/merge_vmaps | 25 +++
3 files changed, 189 insertions(+), 58 deletions(-)
create mode 100644 tests/shell/testcases/optimizations/dumps/merge_vmaps.nft
create mode 100755 tests/shell/testcases/optimizations/merge_vmaps
--
2.30.2
next reply other threads:[~2022-01-26 22:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-26 22:33 Pablo Neira Ayuso [this message]
2022-01-26 22:33 ` [PATCH nftables 1/4] optimize: add __expr_cmp() Pablo Neira Ayuso
2022-01-26 22:33 ` [PATCH nftables 2/4] optimize: merge verdict maps with same lookup key Pablo Neira Ayuso
2022-01-26 22:33 ` [PATCH nftables 3/4] optimize: check for payload base and offset when searching for mergers Pablo Neira Ayuso
2022-01-26 22:33 ` [PATCH nftables 4/4] optimize: do not merge raw payload expressions Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220126223314.297735-1-pablo@netfilter.org \
--to=pablo@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.