]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: expr: remove expr_ops from struct expr
authorFlorian Westphal <fw@strlen.de>
Fri, 8 Feb 2019 16:02:23 +0000 (17:02 +0100)
committerFlorian Westphal <fw@strlen.de>
Fri, 8 Feb 2019 20:26:16 +0000 (21:26 +0100)
commite3f195777ee54c7a57aab932b64c6ecbd782f68f
treef1336d55e55529df44d01c47f8fefd0b844bdfa8
parent72931553828af0ce85f0562b9ff8ec7f4d28e050
src: expr: remove expr_ops from struct expr

size of struct expr changes from 144 to 128 bytes on x86_64.
This doesn't look like much, but large rulesets can have tens of thousands
of expressions (each set element is represented by an expression).

Signed-off-by: Florian Westphal <fw@strlen.de>
16 files changed:
include/expression.h
src/ct.c
src/expression.c
src/exthdr.c
src/fib.c
src/hash.c
src/meta.c
src/numgen.c
src/osf.c
src/parser_bison.y
src/parser_json.c
src/payload.c
src/rt.c
src/socket.c
src/tcpopt.c
src/xfrm.c