Skip to content

netfilter: nf_tables: extend retpoline workarounds

Florian Westphal netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3netfilter: nf_tables: add static key to skip retpoline workaroundsnet/netfilter/nf_tables_core.c+29 -10 replies
2/3netfilter: nf_tables: avoid retpoline overhead for objref callsinclude/net/netfilter/nf_tables_core.h net/netfilter/nf_tables_core.c net/netfilter/nft_objref.c+12 -60 replies
3/3netfilter: nf_tables: avoid retpoline overhead for some ct expression callsinclude/net/netfilter/nf_tables_core.h net/netfilter/Makefile net/netfilter/nf_tables_core.c +2 more+104 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nf-next 0/3] netfilter: nf_tables: extend retpoline workarounds

- 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
Signature · 1 line
2.38.2