netfilter: nft_hash: add support for timeouts
authorPatrick McHardy <kaber@trash.net>
Thu, 26 Mar 2015 12:39:40 +0000 (12:39 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 1 Apr 2015 09:17:49 +0000 (11:17 +0200)
commit9d0982927e79049675cb6c6c04a0ebb3dad5a434
tree8a0c0e2e7e930f83fcd1bce4a1b5630a21d58d94
parent6908665826d56ddd024f3e131a9ee36f0d140943
netfilter: nft_hash: add support for timeouts

Add support for element timeouts to nft_hash. The lookup and walking
functions are changed to ignore timed out elements, a periodic garbage
collection task cleans out expired entries.

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/nft_hash.c