aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2010-11-12 11:33:17 -0500
committerPatrick McHardy <kaber@trash.net>2010-11-12 11:33:17 -0500
commite5fc9e7a666e5964b60e05903b90aa832354b68c (patch)
treef7cff583883389616369687a4658c0a79409f0fd /include/net
parentc753796769e4fb0cd813b6e5801b3c01f4681d4f (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.h6
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
129static inline struct nf_conn * 129static inline struct nf_conn *