Skip to content

cache updates,v2

Pablo Neira Ayuso netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18tests: shell: remove missing modulestests/shell/run-tests.sh+3 -20 replies
2/18src: unbreak deletion by table handlesrc/evaluate.c src/mnl.c tests/shell/testcases/cache/0008_delete_by_handle_0+24 -10 replies
3/18rule: skip fuzzy lookup for unexisting 64-bit handlesrc/cmd.c tests/shell/testcases/cache/0009_delete_by_handle_incorrect_0+23 -00 replies
4/18src: pass chain name to chain_cache_find()include/cache.h src/cache.c src/evaluate.c +2 more+12 -140 replies
5/18src: consolidate nft_cache infrastructureinclude/cache.h include/nftables.h include/rule.h +4 more+43 -430 replies
6/18src: consolidate object cache infrastructureinclude/cache.h include/rule.h src/cache.c +2 more+75 -500 replies
7/18cache: add hashtable cache for objectinclude/cache.h include/rule.h src/cache.c +5 more+124 -550 replies
8/18cache: add hashtable cache for flowtableinclude/cache.h include/netlink.h include/rule.h +5 more+112 -330 replies
9/18cache: add set_cache_del() and use itinclude/cache.h src/cache.c src/monitor.c+7 -10 replies
10/18evaluate: add set to the cachesrc/evaluate.c+4 -00 replies
11/18evaluate: add flowtable to the cachesrc/evaluate.c+3 -00 replies
12/18cache: missing table cache for several policy objectssrc/cache.c+4 -00 replies
13/18evaluate: add object to the cachesrc/evaluate.c+10 -00 replies
14/18cache: add hashtable cache for tableinclude/cache.h include/rule.h src/cache.c +7 more+182 -1210 replies
15/18evaluate: remove chain from cache on delete chain commandinclude/cache.h src/cache.c src/evaluate.c+31 -00 replies
16/18evaluate: remove set from cache on delete set commandsrc/evaluate.c+24 -00 replies
17/18evaluate: remove flowtable from cache on delete flowtable commandinclude/cache.h src/cache.c src/evaluate.c+30 -00 replies
18/18evaluate: remove object from cache on delete object commandsrc/evaluate.c+37 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nft 00/18] cache updates,v2

Hi,

This is another round of patches to update the cache infrastructure in nftables:

1) Remove all nftables modules after running tests/shell.

2) Restore removal by 64-bit unique handle.

3) Consolidate cache infrastructure.

4) Add hashtable cache for remaining objects.

5) Track deletions on the cache.

Pablo Neira Ayuso (18):
tests: shell: remove missing modules
src: unbreak deletion by table handle
rule: skip fuzzy lookup for unexisting 64-bit handle
src: pass chain name to chain_cache_find()
src: consolidate nft_cache infrastructure
src: consolidate object cache infrastructure
cache: add hashtable cache for object
cache: add hashtable cache for flowtable
cache: add set_cache_del() and use it
evaluate: add set to the cache
evaluate: add flowtable to the cache
cache: missing table cache for several policy objects
evaluate: add object to the cache
cache: add hashtable cache for table
evaluate: remove chain from cache on delete chain command
evaluate: remove set from cache on delete set command
evaluate: remove flowtable from cache on delete flowtable command
evaluate: remove object from cache on delete object command

 include/cache.h                               |  60 ++-
 include/netlink.h                             |   2 +
 include/nftables.h                            |   8 +-
 include/rule.h                                |  31 +-
 src/cache.c                                   | 341 +++++++++++++++---
 src/cmd.c                                     |  17 +-
 src/evaluate.c                                | 275 +++++++++++---
 src/json.c                                    |  38 +-
 src/libnftables.c                             |  13 +-
 src/mnl.c                                     |   2 +-
 src/monitor.c                                 |  26 +-
 src/netlink.c                                 |  25 +-
 src/netlink_delinearize.c                     |   7 +-
 src/rule.c                                    | 170 ++++-----
 tests/shell/run-tests.sh                      |   5 +-
 .../testcases/cache/0008_delete_by_handle_0   |  20 +
 .../cache/0009_delete_by_handle_incorrect_0   |   8 +
 17 files changed, 738 insertions(+), 310 deletions(-)
 create mode 100755 tests/shell/testcases/cache/0008_delete_by_handle_0
 create mode 100755 tests/shell/testcases/cache/0009_delete_by_handle_incorrect_0
Signature · 1 line
2.20.1