summaryrefslogtreecommitdiff
path: root/mm/util.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2023-04-11 16:29:46 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-04-22 01:39:40 +0200
commitd4d89e6546e0d1ac09cb9dd353f0cb31c8a8deb1 (patch)
treeef556bff3dea2eefaf71958f749c56d37f3f4e66 /mm/util.c
parente38fbfa972eb0944ce4387caf23d166c1df4b114 (diff)
netfilter: nf_tables: don't store address of last rule on jump
Walk the rule headers until the trailer one (last_bit flag set) instead of stopping at last_rule address. This avoids the need to store the address when jumping to another chain. This cuts size of jumpstack array by one third, on 64bit from 384 to 256 bytes. Still, stack usage is still quite large: scripts/stackusage: nf_tables_core.c:258 nft_do_chain 496 static Next patch will also remove chain pointer. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions