diff options
author | stephen hemminger <stephen@networkplumber.org> | 2016-04-13 20:02:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-14 01:15:52 -0400 |
commit | f38ba953bee01887d520f7abba536721a1d16477 (patch) | |
tree | 2184ee7b231046f32eb41d474efb18fe951a6868 /include/net/ip_tunnels.h | |
parent | d0988a5f77e7a399ac579e629f1dcc23059246e9 (diff) |
gre: eliminate holes in ip_tunnel
The structure can be packed denser by doing minor rearrangement
of existing elements.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip_tunnels.h')
-rw-r--r-- | include/net/ip_tunnels.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h index 16435d8b1f93..9ae9fbbccd67 100644 --- a/include/net/ip_tunnels.h +++ b/include/net/ip_tunnels.h | |||
@@ -105,24 +105,23 @@ struct ip_tunnel { | |||
105 | struct net_device *dev; | 105 | struct net_device *dev; |
106 | struct net *net; /* netns for packet i/o */ | 106 | struct net *net; /* netns for packet i/o */ |
107 | 107 | ||
108 | int err_count; /* Number of arrived ICMP errors */ | ||
109 | unsigned long err_time; /* Time when the last ICMP error | 108 | unsigned long err_time; /* Time when the last ICMP error |
110 | * arrived */ | 109 | * arrived */ |
110 | int err_count; /* Number of arrived ICMP errors */ | ||
111 | 111 | ||
112 | /* These four fields used only by GRE */ | 112 | /* These four fields used only by GRE */ |
113 | u32 i_seqno; /* The last seen seqno */ | 113 | u32 i_seqno; /* The last seen seqno */ |
114 | u32 o_seqno; /* The last output seqno */ | 114 | u32 o_seqno; /* The last output seqno */ |
115 | int tun_hlen; /* Precalculated header length */ | 115 | int tun_hlen; /* Precalculated header length */ |
116 | int mlink; | ||
117 | 116 | ||
118 | struct dst_cache dst_cache; | 117 | struct dst_cache dst_cache; |
119 | 118 | ||
120 | struct ip_tunnel_parm parms; | 119 | struct ip_tunnel_parm parms; |
121 | 120 | ||
121 | int mlink; | ||
122 | int encap_hlen; /* Encap header length (FOU,GUE) */ | 122 | int encap_hlen; /* Encap header length (FOU,GUE) */ |
123 | struct ip_tunnel_encap encap; | ||
124 | |||
125 | int hlen; /* tun_hlen + encap_hlen */ | 123 | int hlen; /* tun_hlen + encap_hlen */ |
124 | struct ip_tunnel_encap encap; | ||
126 | 125 | ||
127 | /* for SIT */ | 126 | /* for SIT */ |
128 | #ifdef CONFIG_IPV6_SIT_6RD | 127 | #ifdef CONFIG_IPV6_SIT_6RD |