aboutsummaryrefslogtreecommitdiff
path: root/lib/meta-flow.h
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2012-04-25 10:18:30 +0900
committerBen Pfaff <blp@nicira.com>2012-04-25 10:04:04 -0700
commit36f3999b707b5456bacd780d0f9acdac85107f60 (patch)
treeef4be8134274794cb3857a43f3c663221a643df7 /lib/meta-flow.h
parentcb6e2b01787b71c39678e9ef98e3b9374a7db378 (diff)
Add OXM data to mf_fields
Add oxm_name and oxm_header elements to struct mf_field and populate those entries for fields that are present in both NXM and the OXM basic class. This implementation was suggested by Ben Pfaff. This does not address any possible differences in the NXM and OXM basic class fields, for instance different maskability. That may be addressed later as needed. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/meta-flow.h')
-rw-r--r--lib/meta-flow.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/meta-flow.h b/lib/meta-flow.h
index 91d52c7d..6340b3e9 100644
--- a/lib/meta-flow.h
+++ b/lib/meta-flow.h
@@ -196,6 +196,15 @@ struct mf_field {
* NULL for the following members, respectively. */
uint32_t nxm_header; /* An NXM_* constant (a few fields have 0). */
const char *nxm_name; /* The "NXM_*" constant's name. */
+
+ /* OXM properties */
+ uint32_t oxm_header; /* Field id in the OXM basic class,
+ * an OXM_* constant.
+ * Ignored if oxm_name is NULL */
+ const char *oxm_name; /* The OXM_* constant's name,
+ * NULL if the field is not present
+ * in the OXM basic class */
+
};
/* The representation of a field's value. */