datapath: Add support for lwtunnel
authorPravin B Shelar <pshelar@nicira.com>
Thu, 3 Dec 2015 19:40:53 +0000 (11:40 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 4 Dec 2015 00:30:21 +0000 (16:30 -0800)
commite23775f20e1a4c193c22f3fc78fb41ebcd93eeac
tree000e3d9413a5a83ffa70a4da57c9d06775974651
parent1b43cf9e68f4dd0dab4f9d3fa9dd80aeb642c139
datapath: Add support for lwtunnel

Following patch adds support for lwtunnel to OVS datapath.
With this change OVS datapath detect lwtunnel support and
make use of new APIs if available. On older kernel where the
support is not there the backported tunnel modules are used.
These backported tunnel devices acts as lwtunnel devices.
I tried to keep backported module same as upstream for easier
bug-fix backport. Since STT and LISP are not upstream OVS
always needs to use respective modules from tunnel compat layer.
To make it work on kernel 4.3 I have converted STT and LISP
modules to lwtunnel API model.

lwtunnel make use of skb-dst to pass tunnel information to the
tunnel module. On older kernel this is not possible. So the in
case of old kernel metadata ref is stored in OVS_CB and direct
call to tunnel transmit function is made by respective tunnel
vport modules. Similarly on receive side tunnel recv directly
call netdev-vport-receive to pass the skb to OVS.

Major backported components include:
Geneve, GRE, VXLAN, ip_tunnel, udp-tunnels GRO.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Joe Stringer <joe@ovn.org>
Acked-by: Jesse Gross <jesse@kernel.org>
61 files changed:
FAQ.md
acinclude.m4
datapath/Modules.mk
datapath/actions.c
datapath/compat.h
datapath/datapath.c
datapath/datapath.h
datapath/dp_notify.c
datapath/flow.c
datapath/flow.h
datapath/flow_netlink.c
datapath/flow_netlink.h
datapath/flow_table.c
datapath/linux/Modules.mk
datapath/linux/compat/dev-openvswitch.c
datapath/linux/compat/geneve.c
datapath/linux/compat/gre.c
datapath/linux/compat/gso.c
datapath/linux/compat/gso.h
datapath/linux/compat/include/linux/etherdevice.h
datapath/linux/compat/include/linux/if_link.h [new file with mode: 0644]
datapath/linux/compat/include/linux/if_vlan.h
datapath/linux/compat/include/linux/list.h
datapath/linux/compat/include/linux/netdev_features.h
datapath/linux/compat/include/linux/netdevice.h
datapath/linux/compat/include/linux/skbuff.h
datapath/linux/compat/include/linux/stddef.h
datapath/linux/compat/include/net/dst_metadata.h [new file with mode: 0644]
datapath/linux/compat/include/net/geneve.h
datapath/linux/compat/include/net/gre.h
datapath/linux/compat/include/net/inet_ecn.h [new file with mode: 0644]
datapath/linux/compat/include/net/ip6_route.h [new file with mode: 0644]
datapath/linux/compat/include/net/ip6_tunnel.h [new file with mode: 0644]
datapath/linux/compat/include/net/ip_tunnels.h
datapath/linux/compat/include/net/lisp.h [new file with mode: 0644]
datapath/linux/compat/include/net/net_namespace.h
datapath/linux/compat/include/net/route.h [new file with mode: 0644]
datapath/linux/compat/include/net/rtnetlink.h [new file with mode: 0644]
datapath/linux/compat/include/net/stt.h
datapath/linux/compat/include/net/udp_tunnel.h
datapath/linux/compat/include/net/vxlan.h
datapath/linux/compat/ip_gre.c [new file with mode: 0644]
datapath/linux/compat/ip_tunnel.c [new file with mode: 0644]
datapath/linux/compat/ip_tunnels_core.c
datapath/linux/compat/lisp.c [new file with mode: 0644]
datapath/linux/compat/netdevice.c
datapath/linux/compat/skbuff-openvswitch.c
datapath/linux/compat/stt.c
datapath/linux/compat/udp_tunnel.c
datapath/linux/compat/vxlan.c
datapath/vport-geneve.c
datapath/vport-gre.c
datapath/vport-internal_dev.c
datapath/vport-lisp.c
datapath/vport-netdev.c
datapath/vport-netdev.h
datapath/vport-stt.c
datapath/vport-vxlan.c
datapath/vport-vxlan.h [deleted file]
datapath/vport.c
datapath/vport.h