summaryrefslogtreecommitdiff
path: root/lib/ofp-actions.h
diff options
context:
space:
mode:
authorJarno Rajahalme <jrajahalme@nicira.com>2013-10-24 13:19:34 -0700
committerBen Pfaff <blp@nicira.com>2013-11-01 22:36:16 -0700
commit097d493945869ed3c0772d5376cd5368ebab6391 (patch)
tree451463f7e0dc8c0b3d73b6909c6eae0619fac1a0 /lib/ofp-actions.h
parent6cc17de80fab26cc7392e8edc46d67cbda250283 (diff)
downloadopenvswitch-097d493945869ed3c0772d5376cd5368ebab6391.tar.gz
Add OF11 SET MPLS LABEL and SET MPLS TC actions.
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com> Reviewed-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'lib/ofp-actions.h')
-rw-r--r--lib/ofp-actions.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/ofp-actions.h b/lib/ofp-actions.h
index c7ce2767f..70ad4b6f8 100644
--- a/lib/ofp-actions.h
+++ b/lib/ofp-actions.h
@@ -78,6 +78,8 @@
DEFINE_OFPACT(STACK_PUSH, ofpact_stack, ofpact) \
DEFINE_OFPACT(STACK_POP, ofpact_stack, ofpact) \
DEFINE_OFPACT(DEC_TTL, ofpact_cnt_ids, cnt_ids) \
+ DEFINE_OFPACT(SET_MPLS_LABEL, ofpact_mpls_label, ofpact) \
+ DEFINE_OFPACT(SET_MPLS_TC, ofpact_mpls_tc, ofpact) \
DEFINE_OFPACT(SET_MPLS_TTL, ofpact_mpls_ttl, ofpact) \
DEFINE_OFPACT(DEC_MPLS_TTL, ofpact_null, ofpact) \
DEFINE_OFPACT(PUSH_MPLS, ofpact_push_mpls, ofpact) \
@@ -552,9 +554,27 @@ struct ofpact_cnt_ids {
uint16_t cnt_ids[];
};
+/* OFPACT_SET_MPLS_LABEL.
+ *
+ * Used for OFPAT11_SET_MPLS_LABEL and NXAST_SET_MPLS_LABEL */
+struct ofpact_mpls_label {
+ struct ofpact ofpact;
+
+ ovs_be32 label;
+};
+
+/* OFPACT_SET_MPLS_TC.
+ *
+ * Used for OFPAT11_SET_MPLS_TC and NXAST_SET_MPLS_TC */
+struct ofpact_mpls_tc {
+ struct ofpact ofpact;
+
+ uint8_t tc;
+};
+
/* OFPACT_SET_MPLS_TTL.
*
- * Used for NXAST_SET_MPLS_TTL */
+ * Used for OFPAT11_SET_MPLS_TTL and NXAST_SET_MPLS_TTL */
struct ofpact_mpls_ttl {
struct ofpact ofpact;