summaryrefslogtreecommitdiff
path: root/net/ipv4/netfilter/nf_nat_proto_unknown.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2011-12-23 13:00:49 (GMT)
committerPablo Neira Ayuso <pablo@netfilter.org>2011-12-23 13:36:45 (GMT)
commitd70308f78bb8192a76a7dc38f5f9de6c2695532b (patch)
tree0fbecee36fdc252cf0be5630395e684b6521d302 /net/ipv4/netfilter/nf_nat_proto_unknown.c
parent329fb58a93b25f0f5ee9d80c0e0e6a6c1a0192b4 (diff)
downloadlinux-d70308f78bb8192a76a7dc38f5f9de6c2695532b.tar.xz
netfilter: nat: remove module reference counting from NAT protocols
The only remaining user of NAT protocol module reference counting is NAT ctnetlink support. Since this is a fairly short sequence of code, convert over to use RCU and remove module reference counting. Module unregistration is already protected by RCU using synchronize_rcu(), so no further changes are necessary. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4/netfilter/nf_nat_proto_unknown.c')
-rw-r--r--net/ipv4/netfilter/nf_nat_proto_unknown.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/nf_nat_proto_unknown.c b/net/ipv4/netfilter/nf_nat_proto_unknown.c
index ab8e8c1..e0afe81 100644
--- a/net/ipv4/netfilter/nf_nat_proto_unknown.c
+++ b/net/ipv4/netfilter/nf_nat_proto_unknown.c
@@ -46,7 +46,6 @@ unknown_manip_pkt(struct sk_buff *skb,
}
const struct nf_nat_protocol nf_nat_unknown_protocol = {
- /* .me isn't set: getting a ref to this cannot fail. */
.manip_pkt = unknown_manip_pkt,
.in_range = unknown_in_range,
.unique_tuple = unknown_unique_tuple,