aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip_tunnels.h
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2016-04-13 17:02:21 -0700
committerDavid S. Miller <davem@davemloft.net>2016-04-14 01:15:52 -0400
commitf38ba953bee01887d520f7abba536721a1d16477 (patch)
tree2184ee7b231046f32eb41d474efb18fe951a6868 /include/net/ip_tunnels.h
parentravb: make ravb_ptp_interrupt() *void* (diff)
downloadlinux-dev-f38ba953bee01887d520f7abba536721a1d16477.tar.xz
linux-dev-f38ba953bee01887d520f7abba536721a1d16477.zip
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.h7
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 {
struct net_device *dev;
struct net *net; /* netns for packet i/o */
- int err_count; /* Number of arrived ICMP errors */
unsigned long err_time; /* Time when the last ICMP error
* arrived */
+ int err_count; /* Number of arrived ICMP errors */
/* These four fields used only by GRE */
u32 i_seqno; /* The last seen seqno */
u32 o_seqno; /* The last output seqno */
int tun_hlen; /* Precalculated header length */
- int mlink;
struct dst_cache dst_cache;
struct ip_tunnel_parm parms;
+ int mlink;
int encap_hlen; /* Encap header length (FOU,GUE) */
- struct ip_tunnel_encap encap;
-
int hlen; /* tun_hlen + encap_hlen */
+ struct ip_tunnel_encap encap;
/* for SIT */
#ifdef CONFIG_IPV6_SIT_6RD