From: Gao feng Date: Thu, 21 Jun 2012 04:36:41 +0000 (+0000) Subject: netfilter: nf_conntrack: use l4proto->users as refcount for per-net data X-Git-Tag: v3.6-rc1~125^2~281^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa34fff5e69cc56eecf26754c9b57403899ebd0d;p=pandora-kernel.git netfilter: nf_conntrack: use l4proto->users as refcount for per-net data Currently, nf_proto_net's l4proto->users meaning is quite confusing since it depends on the compilation tweaks. To resolve this, we cleanup this code to regard it as the refcount for l4proto's per-net data, since there may be two l4protos use the same per-net data. Thus, we increment pn->users when nf_conntrack_l4proto_register successfully, and decrement it for nf_conntrack_l4_unregister case. The users refcnt is not required form layer 3 protocol trackers. Signed-off-by: Gao feng Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed