netfilter: conntrack: move event caching to conntrack extension infrastructure
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 13 Jun 2009 10:26:29 +0000 (12:26 +0200)
committerPatrick McHardy <kaber@trash.net>
Sat, 13 Jun 2009 10:26:29 +0000 (12:26 +0200)
commita0891aa6a635f658f29bb061a00d6d3486941519
tree40df3898f9f2e0892683c482d81deec4fd5a9257
parent65cb9fda32be613216f601a330b311c3bd7a8436
netfilter: conntrack: move event caching to conntrack extension infrastructure

This patch reworks the per-cpu event caching to use the conntrack
extension infrastructure.

The main drawback is that we consume more memory per conntrack
if event delivery is enabled. This patch is required by the
reliable event delivery that follows to this patch.

BTW, this patch allows you to enable/disable event delivery via
/proc/sys/net/netfilter/nf_conntrack_events in runtime, although
you can still disable event caching as compilation option.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/net/netfilter/nf_conntrack_ecache.h
include/net/netfilter/nf_conntrack_extend.h
include/net/netns/conntrack.h
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_conntrack_ecache.c
net/netfilter/nf_conntrack_netlink.c