cache updates,v2
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | tests: shell: remove missing modulestests/ | +3 | 0 replies | |
| 2/18 | src: unbreak deletion by table handlesrc/ src/ tests/ | +24 | 0 replies | |
| 3/18 | rule: skip fuzzy lookup for unexisting 64-bit handlesrc/ tests/ | +23 | 0 replies | |
| 4/18 | src: pass chain name to chain_cache_find()include/ src/ src/ +2 more | +12 | 0 replies | |
| 5/18 | src: consolidate nft_cache infrastructureinclude/ include/ include/ +4 more | +43 | 0 replies | |
| 6/18 | src: consolidate object cache infrastructureinclude/ include/ src/ +2 more | +75 | 0 replies | |
| 7/18 | cache: add hashtable cache for objectinclude/ include/ src/ +5 more | +124 | 0 replies | |
| 8/18 | cache: add hashtable cache for flowtableinclude/ include/ include/ +5 more | +112 | 0 replies | |
| 9/18 | cache: add set_cache_del() and use itinclude/ src/ src/ | +7 | 0 replies | |
| 10/18 | evaluate: add set to the cachesrc/ | +4 | 0 replies | |
| 11/18 | evaluate: add flowtable to the cachesrc/ | +3 | 0 replies | |
| 12/18 | cache: missing table cache for several policy objectssrc/ | +4 | 0 replies | |
| 13/18 | evaluate: add object to the cachesrc/ | +10 | 0 replies | |
| 14/18 | cache: add hashtable cache for tableinclude/ include/ src/ +7 more | +182 | 0 replies | |
| 15/18 | evaluate: remove chain from cache on delete chain commandinclude/ src/ src/ | +31 | 0 replies | |
| 16/18 | evaluate: remove set from cache on delete set commandsrc/ | +24 | 0 replies | |
| 17/18 | evaluate: remove flowtable from cache on delete flowtable commandinclude/ src/ src/ | +30 | 0 replies | |
| 18/18 | evaluate: remove object from cache on delete object commandsrc/ | +37 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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