summaryrefslogtreecommitdiffstats
path: root/net/ipv4/netfilter/nf_nat_proto_gre.c
diff options
context:
space:
mode:
authorPatrick McHardy2011-12-23 14:00:49 +0100
committerPablo Neira Ayuso2011-12-23 14:36:45 +0100
commitd70308f78bb8192a76a7dc38f5f9de6c2695532b (patch)
tree0fbecee36fdc252cf0be5630395e684b6521d302 /net/ipv4/netfilter/nf_nat_proto_gre.c
parentnetfilter: nf_nat: add missing nla_policy entry for CTA_NAT_PROTO attribute (diff)
downloadkernel-qcow2-linux-d70308f78bb8192a76a7dc38f5f9de6c2695532b.tar.gz
kernel-qcow2-linux-d70308f78bb8192a76a7dc38f5f9de6c2695532b.tar.xz
kernel-qcow2-linux-d70308f78bb8192a76a7dc38f5f9de6c2695532b.zip
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_gre.c')
-rw-r--r--net/ipv4/netfilter/nf_nat_proto_gre.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/nf_nat_proto_gre.c b/net/ipv4/netfilter/nf_nat_proto_gre.c
index 9b1c629d7a00..35cd158d4675 100644
--- a/net/ipv4/netfilter/nf_nat_proto_gre.c
+++ b/net/ipv4/netfilter/nf_nat_proto_gre.c
@@ -119,7 +119,6 @@ gre_manip_pkt(struct sk_buff *skb, unsigned int iphdroff,
static const struct nf_nat_protocol gre = {
.protonum = IPPROTO_GRE,
- .me = THIS_MODULE,
.manip_pkt = gre_manip_pkt,
.in_range = nf_nat_proto_in_range,
.unique_tuple = gre_unique_tuple,