[ovs-git] [openvswitch/ovs] e23775: datapath: Add support for lwtunnel

GitHub noreply at github.com
Fri Dec 4 00:32:41 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: e23775f20e1a4c193c22f3fc78fb41ebcd93eeac
      https://github.com/openvswitch/ovs/commit/e23775f20e1a4c193c22f3fc78fb41ebcd93eeac
  Author: Pravin B Shelar <pshelar at nicira.com>
  Date:   2015-12-03 (Thu, 03 Dec 2015)

  Changed paths:
    M FAQ.md
    M acinclude.m4
    M datapath/Modules.mk
    M datapath/actions.c
    M datapath/compat.h
    M datapath/datapath.c
    M datapath/datapath.h
    M datapath/dp_notify.c
    M datapath/flow.c
    M datapath/flow.h
    M datapath/flow_netlink.c
    M datapath/flow_netlink.h
    M datapath/flow_table.c
    M datapath/linux/Modules.mk
    M datapath/linux/compat/dev-openvswitch.c
    M datapath/linux/compat/geneve.c
    M datapath/linux/compat/gre.c
    M datapath/linux/compat/gso.c
    M datapath/linux/compat/gso.h
    M datapath/linux/compat/include/linux/etherdevice.h
    A datapath/linux/compat/include/linux/if_link.h
    M datapath/linux/compat/include/linux/if_vlan.h
    M datapath/linux/compat/include/linux/list.h
    M datapath/linux/compat/include/linux/netdev_features.h
    M datapath/linux/compat/include/linux/netdevice.h
    M datapath/linux/compat/include/linux/skbuff.h
    M datapath/linux/compat/include/linux/stddef.h
    A datapath/linux/compat/include/net/dst_metadata.h
    M datapath/linux/compat/include/net/geneve.h
    M datapath/linux/compat/include/net/gre.h
    A datapath/linux/compat/include/net/inet_ecn.h
    A datapath/linux/compat/include/net/ip6_route.h
    A datapath/linux/compat/include/net/ip6_tunnel.h
    M datapath/linux/compat/include/net/ip_tunnels.h
    A datapath/linux/compat/include/net/lisp.h
    M datapath/linux/compat/include/net/net_namespace.h
    A datapath/linux/compat/include/net/route.h
    A datapath/linux/compat/include/net/rtnetlink.h
    M datapath/linux/compat/include/net/stt.h
    M datapath/linux/compat/include/net/udp_tunnel.h
    M datapath/linux/compat/include/net/vxlan.h
    A datapath/linux/compat/ip_gre.c
    A datapath/linux/compat/ip_tunnel.c
    M datapath/linux/compat/ip_tunnels_core.c
    A datapath/linux/compat/lisp.c
    M datapath/linux/compat/netdevice.c
    M datapath/linux/compat/skbuff-openvswitch.c
    M datapath/linux/compat/stt.c
    M datapath/linux/compat/udp_tunnel.c
    M datapath/linux/compat/vxlan.c
    M datapath/vport-geneve.c
    M datapath/vport-gre.c
    M datapath/vport-internal_dev.c
    M datapath/vport-lisp.c
    M datapath/vport-netdev.c
    M datapath/vport-netdev.h
    M datapath/vport-stt.c
    M datapath/vport-vxlan.c
    R datapath/vport-vxlan.h
    M datapath/vport.c
    M datapath/vport.h

  Log Message:
  -----------
  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 at nicira.com>
Acked-by: Joe Stringer <joe at ovn.org>
Acked-by: Jesse Gross <jesse at kernel.org>




More information about the git mailing list