net: Cleanup encap items in ip_tunnels.h
authorTom Herbert <tom@herbertland.com>
Wed, 18 May 2016 16:06:13 +0000 (09:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 May 2016 22:03:16 +0000 (18:03 -0400)
commit55c2bc1432241e7be39b11339bd00e85f878ebd6
tree33b4dfd243b3164041732dbbb2366fd05e4274a7
parent1da44f9c15e6389d45e034d5fd0b937e2928b412
net: Cleanup encap items in ip_tunnels.h

Consolidate all the ip_tunnel_encap definitions in one spot in the
header file. Also, move ip_encap_hlen and ip_tunnel_encap from
ip_tunnel.c to ip_tunnels.h so they call be called without a dependency
on ip_tunnel module. Similarly, move iptun_encaps to ip_tunnel_core.c.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_tunnels.h
net/ipv4/ip_tunnel.c
net/ipv4/ip_tunnel_core.c