OSDN Git Service

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)
commitcfed7e1b1f8ed9b3d81ab12203cfb69c3ef24ac6
treea16ae3f27a6b9a9b5e547a79dd2b86adbed02454
parentc3e1b005ed1cc068fc9d454a6e745830d55d251d
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