summaryrefslogtreecommitdiff
path: root/include/openflow
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2015-07-08 16:02:30 -0700
committerJesse Gross <jesse@nicira.com>2015-07-15 20:33:41 -0700
commitb666962be3b2772bec76c2df0c1aec90ce373b36 (patch)
treec2157717a1a6341c54337a4be3fc584284b5397d /include/openflow
parent8e4c1621e939cd29df79b526920e5c243a48bdaa (diff)
downloadopenvswitch-b666962be3b2772bec76c2df0c1aec90ce373b36.tar.gz
tunneling: Allow matching and setting tunnel 'OAM' flag.
Several encapsulation formats have the concept of an 'OAM' bit which typically is used with networking tracing tools to distinguish test packets from real traffic. OVS already internally has support for this, however, it doesn't do anything with it and it also isn't exposed for controllers to use. This enables support through OpenFlow. There are several other tunnel flags which are consumed internally by OVS. It's not clear that it makes sense to use them externally so this does not expose those flags - although it should be easy to do so if necessary in the future. Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include/openflow')
-rw-r--r--include/openflow/nicira-ext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openflow/nicira-ext.h b/include/openflow/nicira-ext.h
index 16a4a7a34..465b19de6 100644
--- a/include/openflow/nicira-ext.h
+++ b/include/openflow/nicira-ext.h
@@ -500,6 +500,9 @@ OFP_ASSERT(sizeof(struct nx_async_config) == 24);
#define NX_IP_FRAG_ANY (1 << 0) /* Is this a fragment? */
#define NX_IP_FRAG_LATER (1 << 1) /* Is this a fragment with nonzero offset? */
+/* Bits in the value of NXM_NX_TUN_FLAGS. */
+#define NX_TUN_FLAG_OAM (1 << 0) /* Is this an OAM packet? */
+
/* ## --------------------- ## */
/* ## Requests and replies. ## */
/* ## --------------------- ## */