]> git.baikalelectronics.ru Git - 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)
commit6503b7b5a369600673da6b6c74619403c5f5d08c
tree68c5a63c9d488685be45c20899439b376963227e
parentbed4e79daecc98c8b091692332722270e1586379
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