Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

stephen hemminger and committed by
David S. Miller
f38ba953 d0988a5f

+3 -4
+3 -4
include/net/ip_tunnels.h
··· 105 105 struct net_device *dev; 106 106 struct net *net; /* netns for packet i/o */ 107 107 108 - int err_count; /* Number of arrived ICMP errors */ 109 108 unsigned long err_time; /* Time when the last ICMP error 110 109 * arrived */ 110 + int err_count; /* Number of arrived ICMP errors */ 111 111 112 112 /* These four fields used only by GRE */ 113 113 u32 i_seqno; /* The last seen seqno */ 114 114 u32 o_seqno; /* The last output seqno */ 115 115 int tun_hlen; /* Precalculated header length */ 116 - int mlink; 117 116 118 117 struct dst_cache dst_cache; 119 118 120 119 struct ip_tunnel_parm parms; 121 120 121 + int mlink; 122 122 int encap_hlen; /* Encap header length (FOU,GUE) */ 123 - struct ip_tunnel_encap encap; 124 - 125 123 int hlen; /* tun_hlen + encap_hlen */ 124 + struct ip_tunnel_encap encap; 126 125 127 126 /* for SIT */ 128 127 #ifdef CONFIG_IPV6_SIT_6RD