Skip to content

Commit

Permalink
gre: eliminate holes in ip_tunnel
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Apr 14, 2016
1 parent d0988a5 commit f38ba95
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions include/net/ip_tunnels.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f38ba95

Please sign in to comment.