summaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/nf_tables.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso2017-01-18 18:30:10 +0100
committerPablo Neira Ayuso2017-02-08 14:16:20 +0100
commit1f48ff6c5393aa7fe290faf5d633164f105b0aa7 (patch)
tree68c5a63c9d488685be45c20899439b376963227e /include/net/netfilter/nf_tables.h
parentnetfilter: nf_tables: rename deactivate_one() to flush() (diff)
downloadkernel-qcow2-linux-1f48ff6c5393aa7fe290faf5d633164f105b0aa7.tar.gz
kernel-qcow2-linux-1f48ff6c5393aa7fe290faf5d633164f105b0aa7.tar.xz
kernel-qcow2-linux-1f48ff6c5393aa7fe290faf5d633164f105b0aa7.zip
netfilter: nf_tables: add flush field to struct nft_set_iter
This provides context to walk callback iterator, thus, we know if the walk happens from the set flush path. This is required by the new bitmap set type coming in a follow up patch which has no real struct nft_set_ext, so it has to allocate it based on the two bit compact element representation. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter/nf_tables.h')
-rw-r--r--include/net/netfilter/nf_tables.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h
index ab155644d489..5830f594842e 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -203,6 +203,7 @@ struct nft_set_elem {
struct nft_set;
struct nft_set_iter {
u8 genmask;
+ bool flush;
unsigned int count;
unsigned int skip;
int err;