提交 f38ba953 编写于 作者: S stephen hemminger 提交者: David S. Miller

gre: eliminate holes in ip_tunnel

The structure can be packed denser by doing minor rearrangement
of existing elements.
Signed-off-by: NStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d0988a5f
...@@ -105,24 +105,23 @@ struct ip_tunnel { ...@@ -105,24 +105,23 @@ struct ip_tunnel {
struct net_device *dev; struct net_device *dev;
struct net *net; /* netns for packet i/o */ 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 unsigned long err_time; /* Time when the last ICMP error
* arrived */ * arrived */
int err_count; /* Number of arrived ICMP errors */
/* These four fields used only by GRE */ /* These four fields used only by GRE */
u32 i_seqno; /* The last seen seqno */ u32 i_seqno; /* The last seen seqno */
u32 o_seqno; /* The last output seqno */ u32 o_seqno; /* The last output seqno */
int tun_hlen; /* Precalculated header length */ int tun_hlen; /* Precalculated header length */
int mlink;
struct dst_cache dst_cache; struct dst_cache dst_cache;
struct ip_tunnel_parm parms; struct ip_tunnel_parm parms;
int mlink;
int encap_hlen; /* Encap header length (FOU,GUE) */ int encap_hlen; /* Encap header length (FOU,GUE) */
struct ip_tunnel_encap encap;
int hlen; /* tun_hlen + encap_hlen */ int hlen; /* tun_hlen + encap_hlen */
struct ip_tunnel_encap encap;
/* for SIT */ /* for SIT */
#ifdef CONFIG_IPV6_SIT_6RD #ifdef CONFIG_IPV6_SIT_6RD
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册