Skip to content

Improve iptables-nft performance with large rulesets

Phil Sutter netfilter-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 6 repliesIn review
  2. v311 patches 10 repliesSuperseded
  3. v224 patches 13 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v114 patches11 repliesSuperseded

Changes in v4 from the cover letter

* Rebase onto current master after pushing the accepted initial three patches.
* Avoid cache inconsistency in __nft_build_cache() if kernel ruleset changed since last call.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8nft-cache: Introduce cache levelsiptables/nft-cache.c iptables/nft.h+47 -161 reply
2/8nft-cache: Fetch only chains in nft_chain_list_get()iptables/nft-cache.c iptables/nft.c+21 -10 replies
3/8nft-cache: Cover for multiple fetcher invocationiptables/nft-cache.c+18 -10 replies
4/8nft-cache: Support partial cache per tableiptables/nft-cache.c+57 -250 replies
5/8nft-cache: Support partial rule cache per chainiptables/nft-cache.c iptables/nft-cache.h iptables/nft.c +2 more+79 -440 replies
6/8nft: Reduce cache overhead of nft_chain_builtin_init()iptables/nft.c+5 -40 replies
7/8nft: Support nft_is_table_compatible() per chainiptables/nft.c iptables/nft.h iptables/xtables-save.c+29 -100 replies
8/8nft: Optimize flushing all chains of a tableiptables/nft-cache.c iptables/nft-cache.h iptables/nft.c+39 -180 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPablo Neira Ayuso
SeriesA-b
1/8A-b
2/8
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v4 thread

Cover letter [iptables PATCH v4 0/8] Improve iptables-nft performance with large rulesets

Fourth try at caching optimizations implementation.

Changes since v3:

* Rebase onto current master after pushing the accepted initial three patches.
* Avoid cache inconsistency in __nft_build_cache() if kernel ruleset changed since last call.

Phil Sutter (8):
nft-cache: Introduce cache levels
nft-cache: Fetch only chains in nft_chain_list_get()
nft-cache: Cover for multiple fetcher invocation
nft-cache: Support partial cache per table
nft-cache: Support partial rule cache per chain
nft: Reduce cache overhead of nft_chain_builtin_init()
nft: Support nft_is_table_compatible() per chain
nft: Optimize flushing all chains of a table

 iptables/nft-cache.c       | 203 ++++++++++++++++++++++++++++++-------
 iptables/nft-cache.h       |   9 +-
 iptables/nft.c             | 108 +++++++++++++-------
 iptables/nft.h             |  14 ++-
 iptables/xtables-restore.c |   4 +-
 iptables/xtables-save.c    |   4 +-
 6 files changed, 259 insertions(+), 83 deletions(-)
Signature · 1 line
2.23.0