]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
netfilter: nf_tables: add flush field to struct nft_set_iter
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 18 Jan 2017 17:30:10 +0000 (18:30 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 8 Feb 2017 13:16:20 +0000 (14:16 +0100)
commit1f48ff6c5393aa7fe290faf5d633164f105b0aa7
tree68c5a63c9d488685be45c20899439b376963227e
parent1ba1c41408df8a9d2f8b9b67e4c9e6f59b29d8ee
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>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c