datapath: Add support for tun_key to Open vSwitch datapath
authorKyle Mestery <kmestery@cisco.com>
Sat, 20 Oct 2012 19:15:24 +0000 (12:15 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Sat, 20 Oct 2012 19:15:24 +0000 (12:15 -0700)
commit356af50bc2a81305002feb94f04fd0dea9e9eb8f
treebea0f83dd5f3ac0d0346532c9e1793c8d13dd064
parent4206b80f6444ceef47ceb9e1a6b88a40eabacb1f
datapath: Add support for tun_key to Open vSwitch datapath

This is a first pass at providing a tun_key which can be
used as the basis for flow-based tunnelling. The
tun_key includes and replaces the tun_id in both struct
ovs_skb_cb and struct sw_tun_key.

This patch allows all existing tun_id behaviour to still work. Existing
users of tun_id are redirected to tun_key->tun_id to retain compatibility.
However, when the userspace code is updated to make use of the new
tun_key, the old behaviour will be deprecated and removed.

NOTE: With these changes, the tunneling code no longer assumes input and
output keys are symmetric.  If they are not, PMTUD needs to be disabled
for tunneling to work.

Signed-off-by: Kyle Mestery <kmestery@cisco.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Reviewed-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
15 files changed:
NEWS
datapath/actions.c
datapath/datapath.c
datapath/datapath.h
datapath/flow.c
datapath/flow.h
datapath/tunnel.c
datapath/tunnel.h
datapath/vport-capwap.c
datapath/vport-gre.c
datapath/vport.c
include/linux/openvswitch.h
lib/dpif-netdev.c
lib/odp-util.c
lib/odp-util.h