]> 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)
commitc80714037d0ab72dedca9fa340b9409171f9544c
tree68c5a63c9d488685be45c20899439b376963227e
parent065f78259eae152056936c7af90aa73615e3ffce
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