summaryrefslogtreecommitdiff
path: root/include/openflow/openflow-common.h
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2013-11-12 16:45:50 +0900
committerBen Pfaff <blp@nicira.com>2013-11-12 08:38:22 -0800
commit083761ad8075a36283149e164b54abe4332bd706 (patch)
tree98fed73b4c7aab14219d9b50b2360a685fef72ee /include/openflow/openflow-common.h
parent11bd0a533c6c6753739d7ffbf65e1812e31739dc (diff)
downloadopenvswitch-083761ad8075a36283149e164b54abe4332bd706.tar.gz
ofproto: Add enum ofp_table
Add enum ofp_table and use it for Flow Mod. Cc: Andy Zhou <azhou@nicira.com> Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include/openflow/openflow-common.h')
-rw-r--r--include/openflow/openflow-common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h
index a38f1e3ec..234bf96cc 100644
--- a/include/openflow/openflow-common.h
+++ b/include/openflow/openflow-common.h
@@ -465,4 +465,14 @@ struct ofp_vendor_header {
};
OFP_ASSERT(sizeof(struct ofp_vendor_header) == 12);
+/* Table numbering. Tables can use any number up to OFPT_MAX. */
+enum ofp_table {
+ /* Last usable table number. */
+ OFPTT_MAX = 0xfe,
+
+ /* Fake tables. */
+ OFPTT_ALL = 0xff /* Wildcard table used for table config,
+ flow stats and flow deletes. */
+};
+
#endif /* openflow/openflow-common.h */