Skip to content

Commit 751fc30

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: conntrack: remove net_id
No users anymore. Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 22fc4c4 commit 751fc30

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

include/net/netfilter/nf_conntrack_l4proto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct nf_conntrack_l4proto {
7979
/* Print out the private part of the conntrack. */
8080
void (*print_conntrack)(struct seq_file *s, struct nf_conn *);
8181
#endif
82-
unsigned int *net_id;
82+
8383
/* Init l4proto pernet data */
8484
int (*init_net)(struct net *net);
8585

net/netfilter/nf_conntrack_proto.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,9 @@ static int kill_l4proto(struct nf_conn *i, void *data)
163163
static struct nf_proto_net *nf_ct_l4proto_net(struct net *net,
164164
const struct nf_conntrack_l4proto *l4proto)
165165
{
166-
if (l4proto->get_net_proto) {
167-
/* statically built-in protocols use static per-net */
166+
if (l4proto->get_net_proto)
168167
return l4proto->get_net_proto(net);
169-
} else if (l4proto->net_id) {
170-
/* ... and loadable protocols use dynamic per-net */
171-
return net_generic(net, *l4proto->net_id);
172-
}
168+
173169
return NULL;
174170
}
175171

0 commit comments

Comments
 (0)