summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-10-12 09:38:30 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2017-10-24 18:01:50 +0200
commit28efb0046512e8a13ed9f9bdf0d68d10bbfbe9cf (patch)
tree0fa5e1c9027c867e0823ded5031626facca29550 /net/ipv4
parentnetfilter: x_tables: don't use seqlock when fetching old counters (diff)
downloadlinux-28efb0046512e8a13ed9f9bdf0d68d10bbfbe9cf.tar.xz
linux-28efb0046512e8a13ed9f9bdf0d68d10bbfbe9cf.zip
netfilter: conntrack: make l3proto trackers const
previous patches removed all writes to them. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
index fe374da4bc13..89af9d88ca21 100644
--- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
+++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
@@ -344,7 +344,7 @@ static void ipv4_hooks_unregister(struct net *net)
mutex_unlock(&register_ipv4_hooks);
}
-struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv4 __read_mostly = {
+const struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv4 = {
.l3proto = PF_INET,
.pkt_to_tuple = ipv4_pkt_to_tuple,
.invert_tuple = ipv4_invert_tuple,