]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: move zone info into struct nf_conn
authorFlorian Westphal <fw@strlen.de>
Sat, 11 Jun 2016 19:57:35 +0000 (21:57 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 23 Jun 2016 11:33:12 +0000 (13:33 +0200)
commit780b8df95730946a6d73fbe44bc97862a45580fb
treeb0af2a1bb788e50d041d300bd14eef78f3429d48
parenta2687440a402b418b2baf7c099659601913f9653
netfilter: move zone info into struct nf_conn

Curently we store zone information as a conntrack extension.
This has one drawback: for every lookup we need to fetch the zone data
from the extension area.

This change place the zone data directly into the main conntrack object
structure and then removes the zone conntrack extension.

The zone data is just 4 bytes, it fits into a padding hole before
the tuplehash info, so we do not even increase the nf_conn structure size.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack.h
include/net/netfilter/nf_conntrack_extend.h
include/net/netfilter/nf_conntrack_zones.h
net/netfilter/nf_conntrack_core.c