[ovs-dev] [PATCH 0/2] Add flow-based tunneling support
Kyle Mestery
kmestery at cisco.com
Fri Sep 28 18:52:52 UTC 2012
These patches build on the first two patches which Simon Horman sent out in
May to move Open vSwitch towards flow-based tunneling. The first patche adds
a tun_key, deprecating the tun_id member of the ovs_skb_cb struct. This patche
retain compatibilty with existing tunneling, but once the userspace code is
submitted, this will be deprecated. The second patch makes an attempt at adding
the new tun_key structure into the flow matching logic in the kernel.
Kyle Mestery (2):
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.
Move struct ovs_key_ipv4_tunnel out of struct sw_flow_key and into
struct sw_flow. This allows it to "float" and be used for matching
only when needed. Modify the matching code in
ovs_flow_tbl_lookup() to match on the tunnel header if it's
set.
NEWS | 3 ++
datapath/actions.c | 25 +++++++++++--
datapath/datapath.c | 37 +++++++++++++------
datapath/datapath.h | 6 ++-
datapath/flow.c | 88 +++++++++++++++++++++++++++++++++++++-------
datapath/flow.h | 25 ++++++++-----
datapath/tunnel.c | 89 +++++++++++++++++++++++++++------------------
datapath/tunnel.h | 14 ++++++-
datapath/vport-capwap.c | 12 +++---
datapath/vport-gre.c | 15 ++++----
datapath/vport.c | 2 +-
include/linux/openvswitch.h | 13 ++++++-
lib/dpif-netdev.c | 1 +
lib/odp-util.c | 52 +++++++++++++++++++++++++-
lib/odp-util.h | 3 +-
15 files changed, 289 insertions(+), 96 deletions(-)
--
1.7.11.4
More information about the dev
mailing list