summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0069interval_merge_0
Commit message (Collapse)AuthorAgeFilesLines
* intervals: add support to automerge with kernel elementsPablo Neira Ayuso2022-04-131-0/+28
Extend the interval codebase to support for merging elements in the kernel with userspace element updates. Add a list of elements to be purged to cmd and set objects. These elements representing outdated intervals are deleted before adding the updated ranges. This routine splices the list of userspace and kernel elements, then it mergesorts to identify overlapping and contiguous ranges. This splice operation is undone so the set userspace cache remains consistent. Incrementally update the elements in the cache, this allows to remove dd44081d91ce ("segtree: Fix add and delete of element in same batch"). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>