diff options
author | Florian Westphal <fw@strlen.de> | 2019-01-15 16:03:35 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-01-18 09:02:33 -0500 |
commit | 22fc4c4c9fd60427bcda00878cee94e7622cfa7a (patch) | |
tree | aff1c2dd0a7345d86eed1b05d80d5887a127f02a /include/net/netns | |
parent | 202e651cd43c69a43f75b445e90f55b59f9af0ad (diff) |
netfilter: conntrack: gre: switch module to be built-in
This makes the last of the modular l4 trackers 'bool'.
After this, all infrastructure to handle dynamic l4 protocol registration
becomes obsolete and can be removed in followup patches.
Old:
302824 net/netfilter/nf_conntrack.ko
21504 net/netfilter/nf_conntrack_proto_gre.ko
New:
313728 net/netfilter/nf_conntrack.ko
Old:
text data bss dec hex filename
6281 1732 4 8017 1f51 nf_conntrack_proto_gre.ko
108356 20613 236 129205 1f8b5 nf_conntrack.ko
New:
112095 21381 240 133716 20a54 nf_conntrack.ko
The size increase is only temporary.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netns')
-rw-r--r-- | include/net/netns/conntrack.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/net/netns/conntrack.h b/include/net/netns/conntrack.h index 51cba0b8adf5..c72f413a2d4d 100644 --- a/include/net/netns/conntrack.h +++ b/include/net/netns/conntrack.h | |||
@@ -70,6 +70,20 @@ struct nf_sctp_net { | |||
70 | }; | 70 | }; |
71 | #endif | 71 | #endif |
72 | 72 | ||
73 | #ifdef CONFIG_NF_CT_PROTO_GRE | ||
74 | enum gre_conntrack { | ||
75 | GRE_CT_UNREPLIED, | ||
76 | GRE_CT_REPLIED, | ||
77 | GRE_CT_MAX | ||
78 | }; | ||
79 | |||
80 | struct nf_gre_net { | ||
81 | struct nf_proto_net nf; | ||
82 | struct list_head keymap_list; | ||
83 | unsigned int timeouts[GRE_CT_MAX]; | ||
84 | }; | ||
85 | #endif | ||
86 | |||
73 | struct nf_ip_net { | 87 | struct nf_ip_net { |
74 | struct nf_generic_net generic; | 88 | struct nf_generic_net generic; |
75 | struct nf_tcp_net tcp; | 89 | struct nf_tcp_net tcp; |
@@ -82,6 +96,9 @@ struct nf_ip_net { | |||
82 | #ifdef CONFIG_NF_CT_PROTO_SCTP | 96 | #ifdef CONFIG_NF_CT_PROTO_SCTP |
83 | struct nf_sctp_net sctp; | 97 | struct nf_sctp_net sctp; |
84 | #endif | 98 | #endif |
99 | #ifdef CONFIG_NF_CT_PROTO_GRE | ||
100 | struct nf_gre_net gre; | ||
101 | #endif | ||
85 | }; | 102 | }; |
86 | 103 | ||
87 | struct ct_pcpu { | 104 | struct ct_pcpu { |