diff options
author | Florian Westphal <fw@strlen.de> | 2023-04-14 15:01:34 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-04-22 01:39:41 +0200 |
commit | 46df417544f4f7fa3438caada0dc0e534a694343 (patch) | |
tree | 6aa9437d46fea9f622e4736dbd8aa67e21fa22d8 /include/net/ip_vs.h | |
parent | netfilter: nf_tables: do not store verdict in traceinfo structure (diff) | |
download | linux-46df417544f4f7fa3438caada0dc0e534a694343.tar.xz linux-46df417544f4f7fa3438caada0dc0e534a694343.zip |
netfilter: nf_tables: do not store rule in traceinfo structure
pass it as argument instead. This reduces size of traceinfo to
16 bytes. Total stack usage:
nf_tables_core.c:252 nft_do_chain 304 static
While its possible to also pass basechain as argument, doing so
increases nft_do_chaininfo function size.
Unlike pktinfo/verdict/rule the basechain info isn't used in
the expression evaluation path. gcc places it on the stack, which
results in extra push/pop when it gets passed to the trace helpers
as argument rather than as part of the traceinfo structure.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/ip_vs.h')
0 files changed, 0 insertions, 0 deletions