summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2017-01-18 18:30:10 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2017-02-08 14:16:20 +0100
commit1f48ff6c5393aa7fe290faf5d633164f105b0aa7 (patch)
tree68c5a63c9d488685be45c20899439b376963227e /include/net
parent1ba1c41408df8a9d2f8b9b67e4c9e6f59b29d8ee (diff)
downloadop-kernel-dev-1f48ff6c5393aa7fe290faf5d633164f105b0aa7.zip
op-kernel-dev-1f48ff6c5393aa7fe290faf5d633164f105b0aa7.tar.gz
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')
-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 ab15564..5830f59 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;
OpenPOWER on IntegriCloud