netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft 0/4] detach concat, list and set expression layouts
@ 2025-07-08 23:23 Pablo Neira Ayuso
  2025-07-08 23:23 ` [PATCH nft 1/4] evaluate: mappings require set expression Pablo Neira Ayuso
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Pablo Neira Ayuso @ 2025-07-08 23:23 UTC (permalink / raw)
  To: netfilter-devel

Hi,

These three expressions use the same layout but they have a different
purpose, it is better to split them in independent layouts.

The compound expression still remains in place, there, the initial
layout to store the list of expressions and size is still in the same
in these expressions.

The initial three patch address type confusions uncovered by patch
4/4 in this series.

This is implicitly reducing the size of one of the largest structs
in the union area of struct expr, still EXPR_SET_ELEM remains the
largest so no gain is achieved in this iteration.

Pablo Neira Ayuso (4):
  evaluate: mappings require set expression
  evaluate: validate set expression type before accessing flags
  src: convert set to list expression
  src: detach set, list and concatenation expression layout

 include/expression.h      |  22 ++++-
 src/cmd.c                 |   5 +-
 src/evaluate.c            | 185 ++++++++++++++++++++++++--------------
 src/expression.c          |  41 ++++-----
 src/intervals.c           |  80 ++++++++---------
 src/json.c                |  10 +--
 src/mergesort.c           |   2 +-
 src/mnl.c                 |  13 ++-
 src/monitor.c             |   2 +-
 src/netlink.c             |  26 +++---
 src/netlink_delinearize.c |  14 +--
 src/netlink_linearize.c   |   2 +-
 src/optimize.c            |  22 ++---
 src/parser_bison.y        |   2 +-
 src/parser_json.c         |   5 +-
 src/rule.c                |   4 +-
 src/segtree.c             |  22 ++---
 17 files changed, 261 insertions(+), 196 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-07-09 13:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-08 23:23 [PATCH nft 0/4] detach concat, list and set expression layouts Pablo Neira Ayuso
2025-07-08 23:23 ` [PATCH nft 1/4] evaluate: mappings require set expression Pablo Neira Ayuso
2025-07-08 23:23 ` [PATCH nft 2/4] evaluate: validate set expression type before accessing flags Pablo Neira Ayuso
2025-07-08 23:23 ` [PATCH nft 3/4] src: convert set to list expression Pablo Neira Ayuso
2025-07-08 23:23 ` [PATCH nft 4/4] src: detach set, list and concatenation expression layout Pablo Neira Ayuso
2025-07-09 13:58 ` [PATCH nft 0/4] detach concat, list and set expression layouts Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).