Commit 376534a3 authored by Jiri Benc's avatar Jiri Benc Committed by David S. Miller
Browse files

ip_tunnels: use offsetofend

parent 6b8847c5
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -23,9 +23,7 @@
#define IPTUNNEL_ERR_TIMEO	(30*HZ)
#define IPTUNNEL_ERR_TIMEO	(30*HZ)


/* Used to memset ip_tunnel padding. */
/* Used to memset ip_tunnel padding. */
#define IP_TUNNEL_KEY_SIZE					\
#define IP_TUNNEL_KEY_SIZE	offsetofend(struct ip_tunnel_key, tp_dst)
	(offsetof(struct ip_tunnel_key, tp_dst) +		\
	 FIELD_SIZEOF(struct ip_tunnel_key, tp_dst))


struct ip_tunnel_key {
struct ip_tunnel_key {
	__be64			tun_id;
	__be64			tun_id;