diff options
author | Jesse Gross <jesse@nicira.com> | 2014-06-05 19:07:32 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2014-06-20 15:19:35 -0700 |
commit | c1fc1411d204c59608bf9fe36a65bd221b10cbb2 (patch) | |
tree | efafb29b0bf6dbc98dd0e8da168ba1fc78b962cb /include/linux | |
parent | 1d2a1b5f5252e4c6ce8bbf8d91ca27aba52496e6 (diff) | |
download | openvswitch-c1fc1411d204c59608bf9fe36a65bd221b10cbb2.tar.gz |
datapath: Add support for Geneve tunneling.
This adds support for Geneve - Generic Network Virtualization
Encapsulation. The protocol is documented at
http://tools.ietf.org/html/draft-gross-geneve-00
The kernel implementation is completely agnostic to the options
that are in use and can handle newly defined options without
further work. It does this by simply matching on a byte array
of options and allowing userspace to setup flows on this array.
Userspace currently implements only support for basic version of
Geneve. It can work with the base header (including the VNI) and
is capable of parsing options but does not currently support any
particular option definitions. Over time, the intention is to
allow options to be matched through OpenFlow without requiring
explicit support in OVS userspace.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/openvswitch.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h index 57d40e383..4f8404546 100644 --- a/include/linux/openvswitch.h +++ b/include/linux/openvswitch.h @@ -215,6 +215,7 @@ enum ovs_vport_type { OVS_VPORT_TYPE_INTERNAL, /* network device implemented by datapath */ OVS_VPORT_TYPE_GRE, /* GRE tunnel. */ OVS_VPORT_TYPE_VXLAN, /* VXLAN tunnel */ + OVS_VPORT_TYPE_GENEVE = 6, /* Geneve tunnel */ OVS_VPORT_TYPE_GRE64 = 104, /* GRE tunnel with 64-bit keys */ OVS_VPORT_TYPE_LISP = 105, /* LISP tunnel */ __OVS_VPORT_TYPE_MAX @@ -341,9 +342,9 @@ enum ovs_tunnel_key_attr { OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT, /* No argument, set DF. */ OVS_TUNNEL_KEY_ATTR_CSUM, /* No argument. CSUM packet. */ OVS_TUNNEL_KEY_ATTR_OAM, /* No argument, OAM frame. */ + OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS, /* Array of Geneve options */ __OVS_TUNNEL_KEY_ATTR_MAX }; - #define OVS_TUNNEL_KEY_ATTR_MAX (__OVS_TUNNEL_KEY_ATTR_MAX - 1) /** |