Signed-off-by: Simon Horman <[email protected]>
---
 lib/ofp-util.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index 760ec85..e3d6703 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -1537,6 +1537,17 @@ ofputil_make_flow_mod_table_id(bool flow_mod_table_id)
     return msg;
 }
 
+static void
+oputil_of12_put_match(struct ofpbuf *msg, const struct cls_rule *cr,
+                      ovs_be64 cookie, ovs_be64 cookie_mask)
+{
+    struct ofp11_match_header *omh = ofpbuf_put_uninit(msg, sizeof *omh);
+    int match_len = nx_put_match(msg, true, cr, cookie, cookie_mask);
+
+    omh->type = htons(OFPMT_OXM);
+    omh->length = htons(match_len + sizeof *omh);
+}
+
 /* Converts an OFPT_FLOW_MOD or NXT_FLOW_MOD message 'oh' into an abstract
  * flow_mod in 'fm'.  Returns 0 if successful, otherwise an OpenFlow error
  * code.
-- 
1.7.10.2.484.gcd07cc5

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to