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: extend retpoline workarounds
Date: Tue, 3 Jan 2023 13:47:14 +0100 [thread overview]
Message-ID: <20230103124717.8178-1-fw@strlen.de> (raw)
- Skip the retpoline if-else cascade if the cpu is recent enough to not
need the retpoline thunk.
- add objref and 'ct state' to the builtin-call list.
This means that 'ct state established,related accept' works without
an indirect call.
Florian Westphal (3):
netfilter: nf_tables: add static key to skip retpoline workarounds
netfilter: nf_tables: avoid retpoline overhead for objref calls
netfilter: nf_tables: avoid retpoline overhead for some ct expression
calls
include/net/netfilter/nf_tables_core.h | 16 ++++++++
net/netfilter/Makefile | 6 +++
net/netfilter/nf_tables_core.c | 35 +++++++++++++++-
net/netfilter/nft_ct.c | 39 ++++++++++++------
net/netfilter/nft_ct_fast.c | 56 ++++++++++++++++++++++++++
net/netfilter/nft_objref.c | 12 +++---
6 files changed, 145 insertions(+), 19 deletions(-)
create mode 100644 net/netfilter/nft_ct_fast.c
--
2.38.2
next reply other threads:[~2023-01-03 12:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-03 12:47 Florian Westphal [this message]
2023-01-03 12:47 ` [PATCH nf-next 1/3] netfilter: nf_tables: add static key to skip retpoline workarounds Florian Westphal
2023-01-03 12:47 ` [PATCH nf-next 2/3] netfilter: nf_tables: avoid retpoline overhead for objref calls Florian Westphal
2023-01-03 12:47 ` [PATCH nf-next 3/3] netfilter: nf_tables: avoid retpoline overhead for some ct expression calls 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=20230103124717.8178-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;
as well as URLs for NNTP newsgroup(s).