diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-11-10 18:08:41 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-11-11 10:55:29 +0100 |
commit | 08725a9dc14c999d3b1602cb7932829301eba137 (patch) | |
tree | 3e3ea11963073842001bd94b9f216dc74a712334 /include/cache.h | |
parent | b3ed8fd8c9f33230fa819a3ae500cd1a99025038 (diff) |
cache: filter out rules by chain
With an autogenerated ruleset with ~20k chains.
# time nft list ruleset &> /dev/null
real 0m1,712s
user 0m1,258s
sys 0m0,454s
Speed up listing of a specific chain:
# time nft list chain nat MWDG-UGR-234PNG3YBUOTS5QD &> /dev/null
real 0m0,542s
user 0m0,251s
sys 0m0,292s
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/cache.h')
-rw-r--r-- | include/cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cache.h b/include/cache.h index 120a1b8d..e5c509e8 100644 --- a/include/cache.h +++ b/include/cache.h @@ -51,6 +51,7 @@ struct nft_cache_filter { struct { uint32_t family; const char *table; + const char *chain; const char *set; } list; |