diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-11-12 11:33:17 -0500 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-11-12 11:33:17 -0500 |
commit | e5fc9e7a666e5964b60e05903b90aa832354b68c (patch) | |
tree | f7cff583883389616369687a4658c0a79409f0fd /include/net | |
parent | c753796769e4fb0cd813b6e5801b3c01f4681d4f (diff) |
netfilter: nf_conntrack: don't always initialize ct->proto
ct->proto is big(60 bytes) due to structure ip_ct_tcp, and we don't need
to initialize the whole for all the other protocols. This patch moves
proto to the end of structure nf_conn, and pushes the initialization down
to the individual protocols.
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netfilter/nf_conntrack.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/netfilter/nf_conntrack.h b/include/net/netfilter/nf_conntrack.h index caf17db87dbc..abfff1e8e0d0 100644 --- a/include/net/netfilter/nf_conntrack.h +++ b/include/net/netfilter/nf_conntrack.h | |||
@@ -116,14 +116,14 @@ struct nf_conn { | |||
116 | u_int32_t secmark; | 116 | u_int32_t secmark; |
117 | #endif | 117 | #endif |
118 | 118 | ||
119 | /* Storage reserved for other modules: */ | ||
120 | union nf_conntrack_proto proto; | ||
121 | |||
122 | /* Extensions */ | 119 | /* Extensions */ |
123 | struct nf_ct_ext *ext; | 120 | struct nf_ct_ext *ext; |
124 | #ifdef CONFIG_NET_NS | 121 | #ifdef CONFIG_NET_NS |
125 | struct net *ct_net; | 122 | struct net *ct_net; |
126 | #endif | 123 | #endif |
124 | |||
125 | /* Storage reserved for other modules, must be the last member */ | ||
126 | union nf_conntrack_proto proto; | ||
127 | }; | 127 | }; |
128 | 128 | ||
129 | static inline struct nf_conn * | 129 | static inline struct nf_conn * |