Skip to content

netfilter: nf_tables: shrink stack usage a bit more

Florian Westphal netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4netfilter: nf_tables: remove unneeded conditionalnet/netfilter/nf_tables_core.c+2 -40 replies
2/4netfilter: nf_tables: do not store pktinfo in traceinfo structureinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_core.c net/netfilter/nf_tables_trace.c+16 -150 replies
3/4netfilter: nf_tables: do not store verdict in traceinfo structureinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_core.c net/netfilter/nf_tables_trace.c+20 -190 replies
4/4netfilter: nf_tables: do not store rule in traceinfo structureinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_core.c net/netfilter/nf_tables_trace.c+16 -160 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/4] netfilter: nf_tables: shrink stack usage a bit more

Get rid of a few redundant pointers in the traceinfo structure. The three removed pointers are used in the expression evaluation loop, so gcc keeps them in registers. Passing them to the (inlined) helpers thus doesn't increase nft_do_chain text size, while stack is reduced by another 24 bytes on 64bit arches.

These patches apply on top of 'netfilter: nf_tables: shrink jump stack size'.

Florian Westphal (4):
netfilter: nf_tables: remove unneeded conditional
netfilter: nf_tables: do not store pktinfo in traceinfo structure
netfilter: nf_tables: do not store verdict in traceinfo structure
netfilter: nf_tables: do not store rule in traceinfo structure

 include/net/netfilter/nf_tables.h | 12 +++------
 net/netfilter/nf_tables_core.c    | 42 ++++++++++++++++---------------
 net/netfilter/nf_tables_trace.c   | 38 +++++++++++++++-------------
 3 files changed, 46 insertions(+), 46 deletions(-)
Signature · 1 line
2.39.2