Skip to content

cache updates

Pablo Neira Ayuso netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10cache: add hashtable cache for objectinclude/cache.h include/rule.h src/cache.c +5 more+133 -540 replies
2/10cache: add hashtable cache for flowtableinclude/cache.h include/netlink.h include/rule.h +5 more+116 -280 replies
3/10cache: add set_cache_del() and use itinclude/cache.h src/cache.c src/monitor.c+8 -10 replies
4/10evaluate: add set to the cachesrc/evaluate.c+4 -00 replies
5/10evaluate: add flowtable to the cachesrc/evaluate.c src/rule.c+4 -10 replies
6/10cache: missing table cache for several policy objectssrc/cache.c+4 -00 replies
7/10evaluate: add object to the cachesrc/evaluate.c+10 -00 replies
8/10cache: move struct nft_cache declaration to cache.hinclude/cache.h include/nftables.h+10 -70 replies
9/10cache: add hashtable cache for tableinclude/cache.h include/rule.h src/cache.c +7 more+107 -770 replies
10/10evaluate: remove table_lookup_global()src/evaluate.c+6 -200 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 0/10] cache updates

Hi,

The following patchset contains cache updates for nft:

#1 adds a object hashtable for lookups by name. #2 adds a flowtable hashtable for lookups by name. #3 adds set_cache_del() and use it from the monitor path. #4 adds ruleset-defined sets to the cache.
#5 adds ruleset-defined flowtables to the cache. #6 populates the table cache for several objects. #7 adds ruleset-define policy objects to the cache. #8 move struct nft_cache declaration to include/cache.h #9 adds a table hashtable for lookups by name. #10 removes table_lookup_global() which is not required
anymore after the previous updates.

Pablo Neira Ayuso (10):
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: move struct nft_cache declaration to cache.h
cache: add hashtable cache for table
evaluate: remove table_lookup_global()

 include/cache.h           |  25 ++++
 include/netlink.h         |   2 +
 include/nftables.h        |   8 +-
 include/rule.h            |  18 +--
 src/cache.c               | 244 ++++++++++++++++++++++++++++++++++++--
 src/evaluate.c            |  83 ++++++-------
 src/json.c                |  24 ++--
 src/libnftables.c         |   8 ++
 src/monitor.c             |  20 ++--
 src/netlink.c             |  23 +---
 src/netlink_delinearize.c |   4 +-
 src/rule.c                | 125 ++++++++-----------
 12 files changed, 399 insertions(+), 185 deletions(-)
Signature · 1 line
2.20.1