netfilter: conntrack: remove net_id
authorFlorian Westphal <fw@strlen.de>
Tue, 15 Jan 2019 21:03:36 +0000 (22:03 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 18 Jan 2019 14:02:33 +0000 (15:02 +0100)
No users anymore.

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

index fded3f1..3585f86 100644 (file)
@@ -79,7 +79,7 @@ struct nf_conntrack_l4proto {
        /* Print out the private part of the conntrack. */
        void (*print_conntrack)(struct seq_file *s, struct nf_conn *);
 #endif
-       unsigned int    *net_id;
+
        /* Init l4proto pernet data */
        int (*init_net)(struct net *net);
 
index e113bb2..47b9294 100644 (file)
@@ -163,13 +163,9 @@ static int kill_l4proto(struct nf_conn *i, void *data)
 static struct nf_proto_net *nf_ct_l4proto_net(struct net *net,
                                const struct nf_conntrack_l4proto *l4proto)
 {
-       if (l4proto->get_net_proto) {
-               /* statically built-in protocols use static per-net */
+       if (l4proto->get_net_proto)
                return l4proto->get_net_proto(net);
-       } else if (l4proto->net_id) {
-               /* ... and loadable protocols use dynamic per-net */
-               return net_generic(net, *l4proto->net_id);
-       }
+
        return NULL;
 }