]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit53bd5e1d3a1c0b7b54a38b591b4d7c879fc0b927
tree40df3898f9f2e0892683c482d81deec4fd5a9257
parent73b2dec9dc15ab127e4f70645aff78a9fe697067
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