From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Cc: Florian Westphal <fw@strlen.de>
Subject: [PATCH nf-next 0/3] netfilter: nf_tables: shrink jump stack size
Date: Tue, 11 Apr 2023 16:29:44 +0200 [thread overview]
Message-ID: <20230411142947.9038-1-fw@strlen.de> (raw)
This series reworks nf_tables evaluation loop so that only the next
rule to run after returning from the chain needs to be saved.
This reduces nft_do_chain stack usage from 600 to 328 bytes.
There is more potential for reduction of stack usage by dieting
the traceinfo structure, I will look into this next.
Florian Westphal (3):
netfilter: nf_tables: merge nft_rules_old structure and end of
ruleblob marker
netfilter: nf_tables: don't store address of last rule on jump
netfilter: nf_tables: don't store chain address on jump
include/net/netfilter/nf_tables.h | 14 ++++++--
net/netfilter/nf_tables_api.c | 56 +++++++++++++------------------
net/netfilter/nf_tables_core.c | 29 +++++-----------
net/netfilter/nf_tables_trace.c | 30 ++++++++++++++---
4 files changed, 70 insertions(+), 59 deletions(-)
--
2.39.2
next reply other threads:[~2023-04-11 14:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-11 14:29 Florian Westphal [this message]
2023-04-11 14:29 ` [PATCH nf-next 1/3] netfilter: nf_tables: merge nft_rules_old structure and end of ruleblob marker Florian Westphal
2023-04-11 14:29 ` [PATCH nf-next 2/3] netfilter: nf_tables: don't store address of last rule on jump Florian Westphal
2023-04-11 14:29 ` [PATCH nf-next 3/3] netfilter: nf_tables: don't store chain address " Florian Westphal
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=20230411142947.9038-1-fw@strlen.de \
--to=fw@strlen.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox