]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: add set garbage collection helpers
authorPatrick McHardy <kaber@trash.net>
Thu, 26 Mar 2015 12:39:38 +0000 (12:39 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 1 Apr 2015 09:17:29 +0000 (11:17 +0200)
commit2d35092a72a01c16de41e4f8b198c60f1a6cec9d
treea16ae3f27a6b9a9b5e547a79dd2b86adbed02454
parentcdcc4f9f52bfd43a9f1c37148851127a4f371112
netfilter: nf_tables: add set garbage collection helpers

Add helpers for GC batch destruction: since element destruction needs
a RCU grace period for all set implementations, add some helper functions
for asynchronous batch destruction. Elements are collected in a batch
structure, which is asynchronously released using RCU once its full.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c