]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: cache: Simplify rule and set fetchers
authorPhil Sutter <phil@nwl.cc>
Thu, 26 Mar 2020 03:47:11 +0000 (04:47 +0100)
committerPhil Sutter <phil@nwl.cc>
Mon, 11 May 2020 12:28:28 +0000 (14:28 +0200)
commitc63b7643bb433abdb55d934029eaa51451cb1b8c
tree489309acbe03fd1b7bbed0ab36979bfbe7f7787b
parent6d8182e9c359ef3167167c5d5cc376da950e5edd
nft: cache: Simplify rule and set fetchers

Since no incremental cache fetching happens anymore, code fetching rules
for chains or elements for sets may safely assume that whatever is in
cache also didn't get populated with rules or elements before.

Therefore no (optional) chain name needs to be passed on to
fetch_rule_cache() and fetch_set_cache() doesn't have to select for
which sets in a table to call set_fetch_elem_cb().

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-cache.c