Skip to content

Enhance cache filter for list commands

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5cache: Include chains, flowtables and objects in netlink debug outputsrc/cache.c src/mnl.c+52 -90 replies
2/5cache: Respect family in all list commandssrc/cache.c tests/shell/testcases/listing/cache_filters+51 -14 replies
3/5cache: Relax chain_cache_dump filter applicationsrc/cache.c+1 -11 reply
4/5cache: Filter for table when listing sets or mapssrc/cache.c tests/shell/testcases/listing/cache_filters+5 -01 reply
5/5cache: Filter for table when listing flowtablessrc/cache.c tests/shell/testcases/listing/cache_filters+4 -01 reply

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchPablo Neira AyusoEric Garver
SeriesT-b
1/5
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [nft PATCH 0/5] Enhance cache filter for list commands

Reducing the amount of data fetched from kernel improves performance with large rule sets but also reduces adverse side-effects if multiple versions of nftables access the same kernel rule set. Being able to ignore parts of the rule set one is not interested in allows for (more or less) safe coexistence if each tool is operating on the data it created itself only.

This series reduces caching for list commands which specify a family and/or table. To help testing this, patch 1 extends netlink debug output to include chains, flowtables and objects so a test case may check if they are fetched or not.

The remaining patches actually increase filter use.

Phil Sutter (5):
cache: Include chains, flowtables and objects in netlink debug output
cache: Respect family in all list commands
cache: Relax chain_cache_dump filter application
cache: Filter for table when listing sets or maps
cache: Filter for table when listing flowtables

 src/cache.c                                 | 11 ++--
 src/mnl.c                                   | 60 ++++++++++++++++++---
 tests/shell/testcases/listing/cache_filters | 53 ++++++++++++++++++
 3 files changed, 113 insertions(+), 11 deletions(-)
 create mode 100755 tests/shell/testcases/listing/cache_filters
Signature · 1 line
2.51.0