ip_tunnels: use offsetofend
Signed-off-by: Jiri Benc <jbenc@redhat.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6b8847c5a2
commit
376534a3d1
|
@ -23,9 +23,7 @@
|
|||
#define IPTUNNEL_ERR_TIMEO (30*HZ)
|
||||
|
||||
/* Used to memset ip_tunnel padding. */
|
||||
#define IP_TUNNEL_KEY_SIZE \
|
||||
(offsetof(struct ip_tunnel_key, tp_dst) + \
|
||||
FIELD_SIZEOF(struct ip_tunnel_key, tp_dst))
|
||||
#define IP_TUNNEL_KEY_SIZE offsetofend(struct ip_tunnel_key, tp_dst)
|
||||
|
||||
struct ip_tunnel_key {
|
||||
__be64 tun_id;
|
||||
|
|
Loading…
Reference in New Issue