netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH nft,v1 0/5] revisit overlap/automerge codebase
Date: Thu, 17 Feb 2022 18:16:59 +0100	[thread overview]
Message-ID: <20220217171705.2637781-1-pablo@netfilter.org> (raw)

Hi,

This patchset removes the segment tree interval overlap/automerge codebase.
This is replaced with mergesort of the set elements + check for overlaps by
linearly iterating the set elements.

This is passing tests/shell and tests/py.

Pablo Neira Ayuso (5):
  src: add EXPR_F_KERNEL to identify expression in the kernel
  src: replace interval segment tree overlap and automerge
  src: remove rbtree datastructure
  mnl: update mnl_nft_setelem_del() to allow for more reuse
  intervals: add support to automerge with kernel elements

 include/Makefile.am  |   2 +-
 include/expression.h |   7 +-
 include/intervals.h  |   9 +
 include/mnl.h        |   3 +-
 include/rbtree.h     |  98 -------
 include/rule.h       |   3 +
 src/Makefile.am      |   2 +-
 src/cache.c          |   3 +-
 src/evaluate.c       |  50 +++-
 src/intervals.c      | 413 +++++++++++++++++++++++++++
 src/mergesort.c      |   1 +
 src/mnl.c            |   6 +-
 src/netlink.c        |   1 +
 src/rbtree.c         | 388 -------------------------
 src/rule.c           |  25 +-
 src/segtree.c        | 660 +------------------------------------------
 16 files changed, 510 insertions(+), 1161 deletions(-)
 create mode 100644 include/intervals.h
 delete mode 100644 include/rbtree.h
 create mode 100644 src/intervals.c
 delete mode 100644 src/rbtree.c

-- 
2.30.2


             reply	other threads:[~2022-02-17 17:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-17 17:16 Pablo Neira Ayuso [this message]
2022-02-17 17:17 ` [PATCH nft,v1 1/1] intervals: add support to automerge with kernel elements Pablo Neira Ayuso
2022-02-17 17:17 ` [PATCH nft,v1 1/5] src: add EXPR_F_KERNEL to identify expression in the kernel Pablo Neira Ayuso
2022-02-17 17:17 ` [PATCH nft,v1 2/5] src: replace interval segment tree overlap and automerge Pablo Neira Ayuso
2022-02-17 17:17 ` [PATCH nft,v1 3/5] src: remove rbtree datastructure Pablo Neira Ayuso
2022-02-17 17:17 ` [PATCH nft,v1 4/5] mnl: update mnl_nft_setelem_del() to allow for more reuse Pablo Neira Ayuso
2022-02-17 17:17 ` [PATCH nft,v1 5/5] intervals: add support to automerge with kernel elements Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220217171705.2637781-1-pablo@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).