summaryrefslogtreecommitdiff
path: root/include/openvswitch/meta-flow.h
diff options
context:
space:
mode:
authorWilliam Tu <u9012063@gmail.com>2018-05-15 16:10:48 -0400
committerBen Pfaff <blp@ovn.org>2018-05-21 20:33:30 -0700
commit7dc18ae96d33813a68367e72da5edbdd95d1a35a (patch)
tree95e43e27a4162c816fb483057367414db6a55885 /include/openvswitch/meta-flow.h
parent0ffff4975308369d9beeeb8fb24e05a19aa155bd (diff)
downloadopenvswitch-7dc18ae96d33813a68367e72da5edbdd95d1a35a.tar.gz
userspace: add erspan tunnel support.
ERSPAN is a tunneling protocol based on GRE tunnel. The patch add erspan tunnel support for ovs-vswitchd with userspace datapath. Configuring erspan tunnel is similar to gre tunnel, but with additional erspan's parameters. Matching a flow on erspan's metadata is also supported, see ovs-fields for more details. Signed-off-by: William Tu <u9012063@gmail.com> Signed-off-by: Greg Rose <gvrose8192@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include/openvswitch/meta-flow.h')
-rw-r--r--include/openvswitch/meta-flow.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/include/openvswitch/meta-flow.h b/include/openvswitch/meta-flow.h
index 98c9e1cb5..64470b524 100644
--- a/include/openvswitch/meta-flow.h
+++ b/include/openvswitch/meta-flow.h
@@ -450,6 +450,62 @@ enum OVS_PACKED_ENUM mf_field_id {
*/
MFF_TUN_GBP_FLAGS,
+ /* "tun_erspan_idx".
+ *
+ * ERSPAN index (direction/port number)
+ *
+ * Type: be32 (low 20 bits).
+ * Maskable: bitwise.
+ * Formatting: hexadecimal.
+ * Prerequisites: none.
+ * Access: read/write.
+ * NXM: none.
+ * OXM: NXOXM_ET_ERSPAN_IDX(11) since OF1.5 and v2.10.
+ */
+ MFF_TUN_ERSPAN_IDX,
+
+ /* "tun_erspan_ver".
+ *
+ * ERSPAN version (v1 / v2)
+ *
+ * Type: u8 (low 4 bits).
+ * Maskable: bitwise.
+ * Formatting: decimal.
+ * Prerequisites: none.
+ * Access: read/write.
+ * NXM: none.
+ * OXM: NXOXM_ET_ERSPAN_VER(12) since OF1.5 and v2.10.
+ */
+ MFF_TUN_ERSPAN_VER,
+
+ /* "tun_erspan_dir".
+ *
+ * ERSPAN mirrored traffic's direction
+ *
+ * Type: u8 (low 1 bits).
+ * Maskable: bitwise.
+ * Formatting: decimal.
+ * Prerequisites: none.
+ * Access: read/write.
+ * NXM: none.
+ * OXM: NXOXM_ET_ERSPAN_DIR(13) since OF1.5 and v2.10.
+ */
+ MFF_TUN_ERSPAN_DIR,
+
+ /* "tun_erspan_hwid".
+ *
+ * ERSPAN Hardware ID
+ *
+ * Type: u8 (low 6 bits).
+ * Maskable: bitwise.
+ * Formatting: hexadecimal.
+ * Prerequisites: none.
+ * Access: read/write.
+ * NXM: none.
+ * OXM: NXOXM_ET_ERSPAN_HWID(14) since OF1.5 and v2.10.
+ */
+ MFF_TUN_ERSPAN_HWID,
+
#if TUN_METADATA_NUM_OPTS == 64
/* "tun_metadata<N>".
*