netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nf-next 0/3] netfilter: nf_tables: extend retpoline workarounds
@ 2023-01-03 12:47 Florian Westphal
  2023-01-03 12:47 ` [PATCH nf-next 1/3] netfilter: nf_tables: add static key to skip " Florian Westphal
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Florian Westphal @ 2023-01-03 12:47 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal

- 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-03 12:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-03 12:47 [PATCH nf-next 0/3] netfilter: nf_tables: extend retpoline workarounds Florian Westphal
2023-01-03 12:47 ` [PATCH nf-next 1/3] netfilter: nf_tables: add static key to skip " 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

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).