netfilter: nftables: add helper function to flush set elements
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 27 Apr 2021 16:05:45 +0000 (18:05 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 27 Apr 2021 16:05:45 +0000 (18:05 +0200)
commite6ba7cb63b8ae0e13e6c2acc4067097c1181f6bf
tree83bc84774a117a5347ae843d6d8b17ea0992aa26
parent6387aa6e59be8d1158c5703f34553c93d7743d8c
netfilter: nftables: add helper function to flush set elements

This patch adds nft_set_flush() which prepares for the catch-all
element support.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c