Tunneling: Tunnel restructuring.
Subsystems (2)
v2 cover Tunneling: Tunnel restructuring.
Following patch series restructure GRE and IPIP tunneling code to make it modular. It adds ip_tunnel module which acts as generic tunneling layer which has common code.
These patches do not change any functionality. I dropped patch to convert gre_proto_lock to rtnl lock according t comment from Stephen Hemminger.
Pravin B Shelar (5):
GRE: Refactor GRE tunneling code.
IPIP: Use ip-tunneling code.
VXLAN: Fix vxlan stats handling.
VXLAN: Use IP Tunnels tunnel ENC encap API
Tunneling: use IP Tunnel stats APIs.
drivers/net/Kconfig | 1 + drivers/net/vxlan.c | 100 +--- include/net/gre.h | 51 ++ include/net/ip_tunnels.h | 169 ++++++ include/net/ipip.h | 88 --- net/ipv4/Kconfig | 7 + net/ipv4/Makefile | 1 + net/ipv4/af_inet.c | 1 - net/ipv4/gre.c | 5 - net/ipv4/ip_gre.c | 1501 ++++++++++------------------------------------ net/ipv4/ip_tunnel.c | 1035 ++++++++++++++++++++++++++++++++ net/ipv4/ip_vti.c | 42 +-- net/ipv4/ipip.c | 749 ++--------------------- net/ipv4/ipmr.c | 2 +- net/ipv6/Kconfig | 2 + net/ipv6/af_inet6.c | 1 - net/ipv6/ip6_gre.c | 43 +-- net/ipv6/ip6_tunnel.c | 1 + net/ipv6/sit.c | 39 +-- 19 files changed, 1654 insertions(+), 2184 deletions(-) create mode 100644 include/net/ip_tunnels.h delete mode 100644 include/net/ipip.h create mode 100644 net/ipv4/ip_tunnel.c